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]
Other format: [Raw text]

Re: [PATCH] Fix wide charater literals (was Re: [RFC] Unexpected compiler twist of the wcscoll issue)


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


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