[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Test failure due to LANG
From: |
Axel Kielhorn |
Subject: |
Re: Test failure due to LANG |
Date: |
Sat, 22 Apr 2023 16:40:02 +0200 |
> Am 22.04.2023 um 16:21 schrieb Max Nikulin <manikulin@gmail.com>:
>
> On 22/04/2023 19:35, Ihor Radchenko wrote:
>> Axel Kielhorn writes:
>>> "* Foo\n:LOGBOOK:\nCLOCK: [2022-11-03 Thu 06:00]--[2022-11-03 Thu 06:01] =>
>>> 0:01\n:END:\n" #(
>>> "* Foo\n:LOGBOOK:\nCLOCK: [2022-11-03 Do 06:00]--[2022-11-03 Do 06:01] =>
>>> 0:01\n:END:\n"
>> (with-environment-variables (("LANG" "de"))
>> (format-time-string "%A"))
>> (with-environment-variables (("LANG" "en"))
>> (format-time-string "%A"))
>
> ("LC_TIME" "de_DE.UTF-8")
>
> Since it is related to dates or even "LC_ALL". E.g. Ubuntu installer may
> configure LC_TIME overriding LANG. Some users may have LC_ALL that overrides
> specific LC_* variable and LANG.
(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.
Axel
Re: Test failure due to LANG, Ihor Radchenko, 2023/04/22
Re: Test failure due to LANG, Axel Kielhorn, 2023/04/22