This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/15467] std::locale("") throws exception
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 May 2004 09:28:04 -0000
- Subject: [Bug libstdc++/15467] std::locale("") throws exception
- References: <20040515171937.15467.bryan@reigndropsfall.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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