fix nl_langinfo_l(CODESET, loc) reporting wrong locale's value