bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#12514: 24.2; message-make-date returns a localized date after X rest


From: Lars Ingebrigtsen
Subject: bug#12514: 24.2; message-make-date returns a localized date after X restart
Date: Tue, 25 Dec 2012 16:34:16 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

Marco Pessotto <melmothx@gmail.com> writes:

> Sorry for the cross-post to bugs@gnus.org, but I suspect the bug is more
> related to Emacs than to Gnus, as it seems to be at C level. Or
> maybe this is related to some libraries shipped by Debian.
>
> The bug is present at least since emacs 23.2.
>
> start emacs with emacs --daemon
>
> start gnus to load message.el
>
> (message-make-date)
>
> => "Tue, 25 Sep 2012 15:43:59 +0200"
>
> ; kill X
>
> (message-make-date)
>
> => "mar, 25 set 2012 15:44:31 +0200"
>
> ; message-make-date is a two lines function:
>
> (let ((system-time-locale "C"))
>   (format-time-string "%a, %d %b %Y %T %z"))
>
> => "Tue, 25 Sep 2012 15:45:13 +0200"

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'?

-- 
(domestic pets only, the antidote for overdose, milk.)
  http://lars.ingebrigtsen.no  *  Lars Magne Ingebrigtsen





reply via email to

[Prev in Thread] Current Thread [Next in Thread]