public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/32254] New: std::runtime_error thrown by locale("")
@ 2007-06-08 7:18 thanate at asu dot edu
2007-06-08 8:39 ` [Bug libstdc++/32254] " pcarlini at suse dot de
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: thanate at asu dot edu @ 2007-06-08 7:18 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/32254] std::runtime_error thrown by locale("")
2007-06-08 7:18 [Bug libstdc++/32254] New: std::runtime_error thrown by locale("") thanate at asu dot edu
@ 2007-06-08 8:39 ` pcarlini at suse dot de
2007-06-08 23:40 ` thanate at asu dot edu
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pcarlini at suse dot de @ 2007-06-08 8:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pcarlini at suse dot de 2007-06-08 08:38 -------
The only possible explanation is that, at build time, the configury didn't find
the required localedata (at least "de_DE") or other tests failed, and the
generic (instead of gnu) locale model has been selected. In that case the
runtime_error is expected. Can you check that?
--
pcarlini at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32254
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/32254] std::runtime_error thrown by locale("")
2007-06-08 7:18 [Bug libstdc++/32254] New: std::runtime_error thrown by locale("") thanate at asu dot edu
2007-06-08 8:39 ` [Bug libstdc++/32254] " pcarlini at suse dot de
@ 2007-06-08 23:40 ` thanate at asu dot edu
2007-06-09 0:11 ` pcarlini at suse dot de
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: thanate at asu dot edu @ 2007-06-08 23:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from thanate at asu dot edu 2007-06-08 23:40 -------
umm... I don't know how to check for that.
But I ran configure with --enable-clocale=gnu.
I posted my build log at
http://mathpost.asu.edu/~thanate/build.log
I'll keep the build dir for a while in case
you need some more log files.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32254
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/32254] std::runtime_error thrown by locale("")
2007-06-08 7:18 [Bug libstdc++/32254] New: std::runtime_error thrown by locale("") thanate at asu dot edu
2007-06-08 8:39 ` [Bug libstdc++/32254] " pcarlini at suse dot de
2007-06-08 23:40 ` thanate at asu dot edu
@ 2007-06-09 0:11 ` pcarlini at suse dot de
2007-06-09 0:22 ` thanate at asu dot edu
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pcarlini at suse dot de @ 2007-06-09 0:11 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/32254] std::runtime_error thrown by locale("")
2007-06-08 7:18 [Bug libstdc++/32254] New: std::runtime_error thrown by locale("") thanate at asu dot edu
` (2 preceding siblings ...)
2007-06-09 0:11 ` pcarlini at suse dot de
@ 2007-06-09 0:22 ` thanate at asu dot edu
2007-06-09 0:27 ` pcarlini at suse dot de
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: thanate at asu dot edu @ 2007-06-09 0:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from thanate at asu dot edu 2007-06-09 00:22 -------
localedef --list-archive gave me only one line:
en_US.utf8
I think that's how I set up my system, with only one locale.
Now I'm not sure why should I have to have de_DE installed
for locale("") to work. But if you want, I can install de_DE
and try again and report back.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32254
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/32254] std::runtime_error thrown by locale("")
2007-06-08 7:18 [Bug libstdc++/32254] New: std::runtime_error thrown by locale("") thanate at asu dot edu
` (3 preceding siblings ...)
2007-06-09 0:22 ` thanate at asu dot edu
@ 2007-06-09 0:27 ` pcarlini at suse dot de
2008-09-29 12:50 ` paolo dot carlini at oracle dot com
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pcarlini at suse dot de @ 2007-06-09 0:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pcarlini at suse dot de 2007-06-09 00:26 -------
Ok, that is it. That locale must be installed because old glibcs had a bug
which showed up clearly with "de_DE" and we must check against it. The docs
explain that, anyway:
http://gcc.gnu.org/onlinedocs/libstdc++/install.html
--
pcarlini at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32254
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/32254] std::runtime_error thrown by locale("")
2007-06-08 7:18 [Bug libstdc++/32254] New: std::runtime_error thrown by locale("") thanate at asu dot edu
` (4 preceding siblings ...)
2007-06-09 0:27 ` pcarlini at suse dot de
@ 2008-09-29 12:50 ` paolo dot carlini at oracle dot com
2008-09-29 13:39 ` paolo dot carlini at oracle dot com
2008-09-29 14:19 ` paolo dot carlini at oracle dot com
7 siblings, 0 replies; 9+ messages in thread
From: paolo dot carlini at oracle dot com @ 2008-09-29 12:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from paolo dot carlini at oracle dot com 2008-09-29 12:48 -------
*** Bug 37673 has been marked as a duplicate of this bug. ***
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ivranos at freemail dot gr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32254
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/32254] std::runtime_error thrown by locale("")
2007-06-08 7:18 [Bug libstdc++/32254] New: std::runtime_error thrown by locale("") thanate at asu dot edu
` (5 preceding siblings ...)
2008-09-29 12:50 ` paolo dot carlini at oracle dot com
@ 2008-09-29 13:39 ` paolo dot carlini at oracle dot com
2008-09-29 14:19 ` paolo dot carlini at oracle dot com
7 siblings, 0 replies; 9+ messages in thread
From: paolo dot carlini at oracle dot com @ 2008-09-29 13:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from paolo dot carlini at oracle dot com 2008-09-29 13:37 -------
*** Bug 37673 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32254
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/32254] std::runtime_error thrown by locale("")
2007-06-08 7:18 [Bug libstdc++/32254] New: std::runtime_error thrown by locale("") thanate at asu dot edu
` (6 preceding siblings ...)
2008-09-29 13:39 ` paolo dot carlini at oracle dot com
@ 2008-09-29 14:19 ` paolo dot carlini at oracle dot com
7 siblings, 0 replies; 9+ messages in thread
From: paolo dot carlini at oracle dot com @ 2008-09-29 14:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from paolo dot carlini at oracle dot com 2008-09-29 14:17 -------
*** Bug 37673 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32254
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2008-09-29 14:19 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-08 7:18 [Bug libstdc++/32254] New: std::runtime_error thrown by locale("") thanate at asu dot edu
2007-06-08 8:39 ` [Bug libstdc++/32254] " pcarlini at suse dot de
2007-06-08 23:40 ` thanate at asu dot edu
2007-06-09 0:11 ` pcarlini at suse dot de
2007-06-09 0:22 ` thanate at asu dot edu
2007-06-09 0:27 ` pcarlini at suse dot de
2008-09-29 12:50 ` paolo dot carlini at oracle dot com
2008-09-29 13:39 ` paolo dot carlini at oracle dot com
2008-09-29 14:19 ` paolo dot carlini at oracle dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).