Problem with --disable-c-mbchar and std::tolower
Paolo Carlini
pcarlini@suse.de
Fri May 20 22:12:00 GMT 2005
Warren_Baird@cimmetry.com wrote:
>I tried posting this on gcc-help earlier in the week, and haven't had a
>single response, so I'm going to try my luck here...
>
>
Well, here you are more lucky ;) Maybe we are slightly off-topic,
however, because this list is about libstdc++-v3 development... Anyway,
we can abuse it a bit, during the weekend... ;)
>We're writing software that was ported from windows to unix, so it assumes
>
>that wchar_t is 2 bytes instead of 4 bytes. We're using the -fshort-wchar
>
>gcc flag, but we've found that creating an std::basic_string of wchar_t
>cause all kinds of problems unless we configured gcc with the
>"--disable-c-mbchar" option.
>
I don't think passing --disable-c-mbchar is the way to go, because
effectively disables wchar_t, that you want, although in the *special*
2-bytes form. Which kind of problems are you having with basic_string?
Shouldn't work too bad together with -fshort-wchar...
Paolo.
More information about the Libstdc++
mailing list