Sample code:
Code: Select all
#include <stdio.h>
#include <langinfo.h>
int main(void)
{
const char *codeset = nl_langinfo(CODESET);
printf("%s\n", codeset);
return 0;
}
I think it may be used by iconv in relation to transliteration, which I'm not sure is working properly either through newlib, although I'm not sure this bug is the cause.