From: Marco Pessotto <melmothx@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 12514@debbugs.gnu.org
Subject: bug#12514: 24.2; message-make-date returns a localized date after X restart
Date: Tue, 25 Dec 2012 17:54:17 +0100 [thread overview]
Message-ID: <87licmoyx2.fsf@universe.krase.net> (raw)
In-Reply-To: <87a9wei4aj.fsf@universe.krase.net>
Lars Ingebrigtsen <larsi@gnus.org> writes:
> This is the definition of `message-make-date', so this seems rather odd:
>
> (defun message-make-date (&optional now)
> "Make a valid data header.
> If NOW, use that time instead."
> (let ((system-time-locale "C"))
> (format-time-string "%a, %d %b %Y %T %z" now)))
>
> Are you picking up a very old version of message.el from somewhere,
> perhaps? Or are you redefining `message-make-date'?
No and no. "Library is file /usr/share/emacs/23.2/lisp/gnus/message.elc"
I run GNU Emacs shipped with Debian. GNU Emacs 23.2.1
(i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2010-12-11 on
raven, modified by Debian.
I can reliably reproduce this bug on my box with the receipt provided.
My workaround was to put something like this in .xinitrc:
emacsclient -e '(let ((system-time-locale "C")) (format-time-string "%a,
%d %b %Y %T %z"))'
After the apparently useless evaluation, everything is back to normal.
From what I can see, the bug is deep inside the C code or related
libraries shipped by Debian, as the Lisp looks quite fine (I did some
source-diving myself).
I can reproduce it reliably with emacs 24.2 too.
; start emacs
emacs --daemon
emacsclient -c -n
; start gnus
; evaluate: everything fine
(message-make-date)
"Tue, 25 Dec 2012 17:44:53 +0100"
; kill X and leave the daemon alive
; bring the emacs back with emacsclient -c -n
; evaluate first time, here we have the broken header
(message-make-date)
"mar, 25 dic 2012 17:45:40 +0100"
(emacs-version)
"GNU Emacs 24.2.2 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2012-12-25 on universe"
; and now we're back to normal, after the first evaluation
(message-make-date)
"Tue, 25 Dec 2012 17:46:23 +0100"
(gnus-version)
"Gnus v5.13"
Please let me know if I can help in some way.
Best wishes and thanks for your awesome work.
--
Marco
next prev parent reply other threads:[~2012-12-25 16:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-25 14:08 bug#12514: 24.2; message-make-date returns a localized date after X restart Marco Pessotto
2012-12-25 15:34 ` Lars Ingebrigtsen
2012-12-25 16:54 ` Marco Pessotto [this message]
2012-12-25 17:36 ` Lars Ingebrigtsen
2019-09-23 15:00 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87licmoyx2.fsf@universe.krase.net \
--to=melmothx@gmail.com \
--cc=12514@debbugs.gnu.org \
--cc=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.