This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
std::locale does not work here
- From: Patrick Gräbel <pgraebel at stud dot fh-dortmund dot de>
- To: libstdc++ at gcc dot gnu dot org
- Date: Tue, 22 Jun 2004 02:33:09 +0200
- Subject: std::locale does not work here
I am using Cygwin (g++-3.3.1) and Debian/stable (g++-3.0.1). The
following call will not throw an "runtime_error" that is described in
Stroustrup's C++ bible:
std::locale loc("$$§§§XXXYYY????!!!");
The constructor even accepts locale strings, that do not make sense.
Also the following code will _not_ produce a ',' instead of a '.':
std::locale loc("de_DE");
double d = 1.76;
std::cout.imbue(loc);
std::cout << d << std::endl;
That's weird. Is g++'s stdc++ lib incompatible to the standard?
Please help me!
-Patrick