X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6FA6C385780C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=towo.net Authentication-Results: sourceware.org; spf=none smtp.mailfrom=towo.net Message-ID: <762594a9-b32c-34a9-fb7b-65dd763c90c3@towo.net> Date: Fri, 29 Apr 2022 13:54:37 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: `locale -s` shows incorrect info on systems where the language is changed after the OOBE To: cygwin AT cygwin DOT com References: From: Thomas Wolff In-Reply-To: X-Provags-ID: V03:K1:VoM2HMwgElPC9flw6tZGNmmYl56/7puXxPqafAxLQ8H7nnRMGlD tK+YJi20wB0vrUCzvabBqM31Nm1pZ8/4hqNCU8SmalgaWga12JSc8mPdTN0EfTaa3qt3mUO nxY5ZEE923Lb02VgQkVhl8sWwbYqaKG7sR31epU6jSSo2riISABPDDu/ORBcgKc3thmCCJZ NLhuBG0zHMaazuQTiRUpQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:shpUYtk1j1Y=:fLc+8jv3iRL/MgKs8iGlJi xIQYHRmD2do2P8sy6ZlBzwr7GdQFDPht6QG0LUuSA7vZDPyEVFjUZYAuUZa1FG3YVM9jAQTtX I+ddn+ltBc4XN7y+m2KQTToMi+Covhw7tqRNSfaByVpOs9okMSZRh07d+UsxaJjRP+YFlOuCM 85hLkmbjvRkXl0xB8BTP1XvpCt4+02y2lwynJUcWZtR6X3WnR7vwQDMWpGSFFs0h8VI6RJyG+ MQ1PjhHt9Wi2LZtFgi02UUFG6k0J5HnuzwkZxswTN4HelxraW0j5bxkBvqLp2XpQ+xMiVj8hn xaGR+2gLASL/IZQaJ24nUToFoKOvGr+YyC+I0K1SxzTvjIQxOZjmBCl0futncQ43j184+Yf4H 7ZBjR2KZE8qsCSMpRFiwsOGJ9+cn7ZARczxr2nd2l0vrNXaw4XxO8UqyMWlE7Y+0Vdb4+dA9O gTHmxPrdKVkM1PsbXEavHAMuUO88SySHUX3/s+o/DnqE3LzDM3xcJvnaltQ6anuEk8lMuC+cs CX+tY0uWu8OsLvycYAtRPWhJaZacRlWwwCvx5pptK1TX2Yf1qBqxr+RDlL7bCx36Pwf8CVylC jFuv0IS6yraYjK8m7nj502g9edfjIZ1tqWxHE3ty1RHcSCDOzqmmYO84CfzKUMnelsXDk0fJl GLCmMBYIysYX7qJL/6xyQu0GK95wpcmR7Y32rk7sgaO6r9Zs5Oy8BaJv0JwJAiqrq8A4= X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" 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? -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple