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)


<<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.
>>

You are not allowed to be tolerant in an Ada compiler.

<<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.
>>

This is only true if you consider ASCII to be the lower half (00-7F)

Ada programs are typically written in Latin-1, and that is the default
character set for most programs. Latin-1 and (for example) shift-JIS
are not compatible, you have to know which of the two you are scanning.


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