This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc compile-time (multibyte issue)


>I woulod say that using the locale unconditionally if the option is
>not given, this may be a pain, because the normal situation is that
>e.g. in Japan, most files are not encoded, only a very few are.

All text files are encoded in some character set. All code that GCC
would be expected to compile is in an ASCII superset, where any ASCII
file is a valid file with the same meaning in that character set. Given
that GCC should be able to use the locale character set without problem,
assuming that multibyte character set reading is fast enough.

It would be nice to be error tolerant in comments, though. I think most
use of non-ASCII text in source code is in comments, and the compiler
doesn't care either way.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]