This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
nl_langinfo(CODESET)
- To: libc-alpha at sources dot redhat dot com
- Subject: nl_langinfo(CODESET)
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Fri, 3 Nov 2000 10:18:01 +0100
I believe the call nl_langinfo(CODESET) works incorrectly in glibc
(all releases). When LANG is set de_DE.ISO-8859-1, then I'd expect the
program
#include <langinfo.h>
int main()
{
printf("%s\n",nl_langinfo(CODESET));
}
to print ISO-8859-1. Instead, it prints ANSI_X3.4-1968. If that is
indeed the correct result, please let me know how to programmatically
find out the execution character set.
Regards,
Martin