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.


Reply via email to