[Bug libstdc++/15992] locale ctor throws for all valid locales on SunOS
pcarlini at suse dot de
gcc-bugzilla@gcc.gnu.org
Tue Jun 15 10:07:00 GMT 2004
------- Additional Comments From pcarlini at suse dot de 2004-06-15 10:06 -------
Hi Martin. On this platform we are using the 'generic' locale model, right? Not
the 'gnu' locale model that needs glibc.
If you can confirm that the explanation it's easy: basically you cannot really
use named localed in that model, just, 3.4 tells you much sooner!
3.3.2
=====
void
locale::facet::_S_create_c_locale(__c_locale& __cloc, const char*,
__c_locale)
{ __cloc = NULL; }
3.4.0
=====
void
locale::facet::_S_create_c_locale(__c_locale& __cloc, const char* __s,
__c_locale)
{
// Currently, the generic model only supports the "C" locale.
// See http://gcc.gnu.org/ml/libstdc++/2003-02/msg00345.html
__cloc = NULL;
if (strcmp(__s, "C"))
__throw_runtime_error(__N("locale::facet::_S_create_c_locale "
"name not valid"));
}
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15992
More information about the Gcc-bugs
mailing list