From: Tor L. <tm...@ik...> - 2009-12-10 08:48:31
|
I think that the libstdc++ distributed by MinGW has been configured with the "generic" C locale support only, which means that it supports only the "C" locale. (Quite probably that is the only possible thing to do for now for MinGW.) Is there some way to see the configure switched passed when configuring libstdc++, like gcc's -v ? Would it be a good idea if MinGW offered also the build log files for download? Check the configure.ac, acinclude.m4, and libstdc++-v3/config/locale/generic/c_locale.cc in the gcc-4.4.0 sources. If you can step down from the C++ ivory tower and use plain old C library functions for your locale needs things might work better... (and then indeed as you use the Microsoft C library, locale names are of the form "Portuguese_Brazil"). If the functionality offered by the C library (or the part of its functionality exposed by MinGW's headers, which miss declarations for _mbslwr_l() for instance) is not enough, step even further down to the Win32 API. Or just use some middle level library like GLib that provides the required functionality, also on Windows. --tml |