This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/32254] std::runtime_error thrown by locale("")
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jun 2007 00:11:20 -0000
- Subject: [Bug libstdc++/32254] std::runtime_error thrown by locale("")
- References: <bug-32254-14674@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from pcarlini at suse dot de 2007-06-09 00:11 -------
See this line in the Log:
> checking for C locale to use... generic
That means the configure-time tests for the gnu locale model are not ok and the
generic locale model is selected instead, as a fallback. Can you investigate
whether the 'de_DE' localedata is installed on your system? It's necessary for
those checks. In order to do that you can, for example, run a small C program
that does 'setlocale(LC_ALL, "de_DE")': it must return a non-NULL pointer. On
linux, you can invoke 'localedef --list-archive'. (note that on 4.2.1 vs
earlier releases, even if you pass --enable-clocale=gnu explicitely, the system
is checked for actual support of the locale model, it cannot be forced: that
may explain the unexpected behavior on your side).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32254