[Bug libc/165] std::locale("") throws exception
pere at hungry dot com
sourceware-bugzilla@sources.redhat.com
Mon May 17 19:41:00 GMT 2004
------- Additional Comments From pere at hungry dot com 2004-05-17 19:41 -------
The example program work for me, when I have the locale available.
Here is a test run:
# cat x.cc
#include <sstream>
#include <iostream>
int main()
{
std::cout.imbue(std::locale(""));
std::cout << 1.5 << std::endl;
return 0;
}
# c++ x.cc
# grep -v '#' /etc/locale.gen
nb_NO ISO-8859-1
# locale-gen
Generating locales...
nb_NO.ISO-8859-1... done
Generation complete.
# LANG=nb_NO ./a.out
1,5
# LANG=xx_YY ./a.out
Aborted
#
Based on this, I believe the code is correct, but the requested
locale is missing, so std::locale() has to fail.
--
http://sources.redhat.com/bugzilla/show_bug.cgi?id=165
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Glibc-bugs
mailing list