This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: cpplib: locale-sensitive lexing
- To: Zack Weinberg <zack at codesourcery dot com>
- Subject: Re: cpplib: locale-sensitive lexing
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Thu, 25 Oct 2001 13:25:11 +0100 (BST)
- cc: Neil Booth <neil at daikokuya dot demon dot co dot uk>, <gcc-patches at gcc dot gnu dot org>
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