This is the mail archive of the
mailing list for the libstdc++ project.
Re: wide character issues with gcc 3.2
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: "Anthony Feick" <afeick at hotmail dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Tue, 20 Aug 2002 13:06:18 -0700
- Subject: Re: wide character issues with gcc 3.2
- Organization: Red Hat / San Francisco
- References: <F80ihNW9T8xsjKV00Uc00006aec@hotmail.com>
> Gcc 3.2 on linux compiles and links our app, but -fshort-wchar doesn't seem
> to be working completely. The compiler directive 'L' converts character
> strings properly, and wchar_t is the right size. The problem is that
> "basic_string<wchar_t>" still thinks everything is 4-bytes.
...because the library has been compiled without this flag, for
starters. You'd have to pass it in with CXXFLAGS, or configure with
There are additional issues with wide character support on BSD's, as
some of the underlying "C" library bits for C99 support in wchar.h,
wctype.h, are not implemented, but try to get this working on linux
first would be my suggestion.