[Development] RFC: Defaulting to or enforcing UTF-8 locales on Unix systems
Thiago Macieira
thiago.macieira at intel.com
Tue Apr 28 16:20:33 CEST 2020
On Monday, 27 April 2020 13:54:13 PDT Simon Hausmann wrote:
> I looked at the patch again and searched a bit around. I think nl_langinfo
> is “broken” on macOS but it doesn’t matter: everything seems to be utf-8,
> all system APIs expect it. I think the CI is well configured and the patch
> should treat Darwin like Android
nl_langinfo is not broken on Mac. I tested it on 10.14 and 10.15 and it works
just fine. More importantly, setlocale() obeys the LC_ALL behaviour to change
the locale of the POSIX functions just fine.
What I need is that the CI set LANG or LC_ALL to "UTF-8". Somehow, the CI
either unset that or was run from an environment that didn t have it set in he
first place.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel System Software Products
More information about the Development
mailing list