GNU bug report logs - #42921
27.1; Setting (setq system-time-locale “C”) in daemon ineffective

Previous Next

Package: emacs;

Reported by: Matthias Weigand <matthias.weigand <at> protonmail.com>

Date: Tue, 18 Aug 2020 20:32:01 UTC

Severity: normal

Tags: moreinfo

Found in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Matthias Weigand <matthias.weigand <at> protonmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: "42921 <at> debbugs.gnu.org" <42921 <at> debbugs.gnu.org>
Subject: bug#42921: 27.1;   Setting (setq system-time-locale “C”) in daemon ineffective
Date: Mon, 30 Nov 2020 07:59:11 +0000
[Message part 1 (text/plain, inline)]
It turned out, that although my zsh showed the correct locale, en_US.UTF-8 that is, my bash did still rock the wrong de_DE.UTF-8. 


Changing it solve the issue, for me at least. It does not explain why setting the locale in your init.el/config.org would not be accepted when running in daemon as opposed to individually instanced sessions.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Friday, October 16, 2020 5:00 PM, Lars Ingebrigtsen <larsi <at> gnus.org> wrote:

&gt; Matthias Weigand matthias.weigand <at> protonmail.com writes:
&gt;
&gt; &gt; I try to set the time locale to "C" in my config via (setq
&gt; &gt; system-time-locale "C"). However, when using the emacs --daemon, it is
&gt; &gt; not set properly and I end up with non-english date formats and weekday
&gt; &gt; abbreviations when the system locale is different.
&gt; &gt; Discussion over at stackexchange pointed to the time variable not being
&gt; &gt; used directly but as a terminal-local variable.
&gt; &gt; https://emacs.stackexchange.com/q/60134
&gt; &gt; Unfortunately, I am not very literate in elisp so I am not able to
&gt; &gt; provide more information. Let me know if I should test something.
&gt;
&gt; I'm unable to reproduce this error. Could you provide a recipe for
&gt; reproducing this? In particular, what are the LC_* language environment
&gt; variables?
&gt;
&gt; --------------------------------------------------------------------------------------------------------------------------------------------------------
&gt;
&gt; (domestic pets only, the antidote for overdose, milk.)
&gt; bloggy blog: http://lars.ingebrigtsen.no

</larsi <at> gnus.org>
[signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 4 years and 231 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.