GNU bug report logs - #641
format-time-string %Z does not work, starting with Emacs 22.2

Previous Next

Packages: emacs, w32;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Fri, 1 Aug 2008 16:55:06 UTC

Severity: wishlist

Merged with 9794

Found in versions 22.2, 23.0.60, 24.0.90

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #26 received at 641 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 641 <at> debbugs.gnu.org
Subject: Re: bug#641: format-time-string %Z does not work,starting with Emacs
 22.2
Date: Tue, 05 Aug 2008 08:28:18 +0200
>>	* s/ms-w32.h: Don't define HAVE_TZNAME.
[...]
> Sorry; I don't know what all of that means.

Jason did undefine HAVE_TZNAME on Windows in order to fix a bug with
`current-time-zone'.  As a consequence, the following code in strftime.c

#if HAVE_TZNAME
	  /* The tzset() call might have changed the value.  */
	  if (!(zone && *zone) && tp->tm_isdst >= 0)
	    zone = tzname[tp->tm_isdst];
#endif
	  if (! zone)
	    zone = "";

will produce an empty zone string on Windows.

I suppose we need different strategies for handling `current-time-zone'
and `format-time-string' on Windows.

martin





This bug report was last modified 13 years and 269 days ago.

Previous Next


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