This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix wide charater literals (was Re: [RFC] Unexpected compiler twist of the wcscoll issue)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 12 Mar 2002 11:49:05 -0500
- Subject: Re: [PATCH] Fix wide charater literals (was Re: [RFC] Unexpected compiler twist of the wcscoll issue)
- References: <200203121644.g2CGih801994@fillmore.constant.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Tue, Mar 12, 2002 at 08:44:43AM -0800, Benjamin Kosnik wrote:
> You can use setlocale("C") to force to the "C" locale. If you look at
> the libstdc++/testsuite/22_locale tests, most of them do this. (At
> least for some tests.)
Nope, setlocale matters for program's runtime, but if gcc is configured
with --enable-c-mbchar, then what matters is LANG of the cc1 process
(ie. what sets literal_codeset variable).
BTW: On powerpc native, my patch should make zero difference, as chars are
unsigned by default there.
Jakub