From: Benjamin Kosnik <bkoz@redhat.com>
To: "Anthony Feick" <afeick@hotmail.com>
CC: libstdc++@gcc.gnu.org
Subject: Re: wide character issues with gcc 3.2
Date: Tue, 20 Aug 2002 13:06:18 -0700
> 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
--enable-cxx-flags="-fshort-wchar"
I did this, but now I get a segfault in stl_alloc.h :
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.
-benjamin