nl_langinfo is not thread-safe, avoid it
This brings some useless overhead for native UTF-8 systems. Linux packagers may want to define ASSUME_UTF8 to avoid this problem. Also, this assumes that iconv_open() recognizes "" as the current character set (POSIX says nothing about valid iconv_open() parameters). (cherry picked from commit 9164192f)
Showing
Please register or sign in to comment