nl_langinfo in newlib
Posted: Thu Jun 05, 2014 9:03 pm
nl_langinfo(CODESET) always returns US-ASCII, no matter what charset OS4 is running in.
Sample code:
Please can this be fixed?
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.
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.