This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/32254] New: std::runtime_error thrown by locale("")
- From: "thanate at asu dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jun 2007 07:18:14 -0000
- Subject: [Bug libstdc++/32254] New: std::runtime_error thrown by locale("")
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following code compiles and run find using my system's
g++-4.1.3 but when compiled with g++-4.2.1 from SVN,
I get
terminate called after throwing an instance of 'std::runtime_error'
what(): locale::facet::_S_create_c_locale name not valid
Aborted
//-----------------
#include <clocale>
#include <sstream>
int main ()
{
std::wostringstream os;
os.imbue(std::locale(""));
return 0;
}
//-----------------
--
Summary: std::runtime_error thrown by locale("")
Product: gcc
Version: 4.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: thanate at asu dot edu
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32254