[Bug libstdc++/15467] std::locale("") throws exception
pcarlini at suse dot de
gcc-bugzilla@gcc.gnu.org
Mon May 17 20:01:00 GMT 2004
------- Additional Comments From pcarlini at suse dot de 2004-05-17 09:28 -------
Probably, the issue is simpler: for some reason, submitter doesn't have
installed any localedata.
Are you on a glibc platform? Could you please provide the output of
'localedef --list-archive' ??
In general, are those named locales otherwise available? I.e., what happens
if you compile and run a simple C test program like the below (in the named
locale of your choice, of course):
#define _GNU_SOURCE 1
#include <locale.h>
#include <langinfo.h>
#include <stdio.h>
#include <time.h>
int main()
{
locale_t loc;
const char* pp;
const char* __s = "fr_FR";
loc = newlocale(1 << LC_ALL, __s, 0);
pp = nl_langinfo_l(ABDAY_1, loc);
printf("ABDAY_1 = %s\n", pp);
freelocale(loc);
return 0;
}
???
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15467
More information about the Gcc-bugs
mailing list