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]

Re: revised proposal for GCC and non-Ascii source files


>  3. For non-GNUC charsets, GCC uses the compilation host's iconv
>     function to determine character boundaries.

How do you do that? Looking at the iconv(3) documentation, I could not
find out how this could work.

Also, how do you detect that you are in ASCII mode in a MBCS encoding?
Consider

void <Escape to JIS X0201>how_many_<yen sign>();<ESCAPE to ASCII>

IMHO, this is illegal: the parens after the function name are not
ASCII characters. However, iconv (and mblen) will tell us that the
character has a single byte, and it will look like ASCII '('.

Regards,
Martin


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