This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

nl_langinfo(CODESET)


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]