[Development] RFC: Defaulting to or enforcing UTF-8 locales on Unix systems

Thiago Macieira thiago.macieira at intel.com
Tue Apr 28 17:42:17 CEST 2020

On Tuesday, 28 April 2020 07:20:33 PDT Thiago Macieira wrote:
> 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.

Another possibility is that some script overrode LC_ALL to "C" so as to get 
non-localised output. Please fix it to override to "C.UTF-8" or something that 
works on a Mac.

Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel System Software Products

More information about the Development mailing list