This is the mail archive of the gcc-patches@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: cpplib: locale-sensitive lexing


On Wed, 24 Oct 2001, Zack Weinberg wrote:

> The Java front end appears to ignore locale and use iconv and
> character encoding names.  This seems much more appropriate to me.

"ignore locale" is imprecise.  At least in POSIXLY_CORRECT mode, the
locale should be used to interpret the source files by default.  The Java
front end is documented to use the locale (via nl_langinfo) by default.  
Other front ends should use the same --encoding option name.  However,
this doesn't mean using the ISO C multibyte functions, and I think the
Java front end indeed doesn't use those.

-- 
Joseph S. Myers
jsm28@cam.ac.uk


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