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 Thu, Oct 25, 2001 at 01:25:11PM +0100, Joseph S. Myers wrote:
> 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.

*Defaulting* to the locale is a reasonable thing to do, but I insist
upon an --encoding switch, and I think we will eventually want in-band
per-file encoding markers.

zw


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