`locale -s` shows incorrect info on systems where the language is changed after the OOBE
Thomas Wolff
towo@towo.net
Fri Apr 29 11:54:37 GMT 2022
Am 29/04/2022 um 12:16 schrieb Gennaro Prota:
> Hi,
>
> the locale utility currently gets the system default UI locale (-s option)
> via GetSystemDefaultUILanguage().
>
> This is a problem on systems where the default UI language is changed after
> the Windows Out of Box Experience (OOBE), because that function will
> happily ignore the fact (see <
> https://docs.microsoft.com/en-us/windows/win32/api/winnls/nf-winnls-getsystemdefaultuilanguage
>> ).
> FWIW, this is not just theoretical: on my work PC, which was set to Italian
> during the first setup (not by me), and is now set to US English, the
> locale utility shows:
>
> $ locale -s
> it_IT
Please check: was the setting really changed for the whole system (i.e.
also for other users) or only for your user account?
Is the change reflected by locale -u?
More information about the Cygwin
mailing list