|
From: | Max Nikulin |
Subject: | Re: Test failure due to LANG |
Date: | Sat, 22 Apr 2023 23:14:25 +0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 |
On 22/04/2023 21:40, Axel Kielhorn wrote:
(with-environment-variables (("LC_TIME" "de_DE.UTF-8")) (format-time-string "%A“)) Still results in „Saturday“ when I start emacs from a shell with LANG=C.
Changing environment variable while process is running is not enough. There is a dedicated function
(set-locale-environment "POSIX") I suppose, forcing "C.UTF-8" should work for tests.
[Prev in Thread] | Current Thread | [Next in Thread] |