Hi,
I stumbled across an issues with locale initialization when the C
locale is specified in the environment.
$ cat test.c
#include stdlib.h
#include stdio.h
#include locale.h
#include langinfo.h
int main(void) {
char cs[8];
puts(nl_langinfo(CODESET));
printf(%i\n, wctomb(cs, 0x80));
On May 4 07:04, Andy Koppe wrote:
Hi,
I stumbled across an issues with locale initialization when the C
locale is specified in the environment.
[...]
The attached small patch addresses this by starting with the LC_CTYPE
locale set to C.UTF-8 and lc_ctype_charset set accordingly too.