• Rémi Denis-Courmont's avatar
    nl_langinfo is not thread-safe, avoid it · 9130fe63
    Rémi Denis-Courmont authored
    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 9164192f0231bed4913e5cd3bb4174343163439b)
    9130fe63
unicode.c 9.54 KB