nl_langinfo in newlib

This forum is for general developer support questions.
Post Reply
chris
Posts: 562
Joined: Sat Jun 18, 2011 11:05 am
Contact:

nl_langinfo in newlib

Post by chris »

nl_langinfo(CODESET) always returns US-ASCII, no matter what charset OS4 is running in.

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;
}
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.
Post Reply