GNU bug report logs - #15816
24.3; (format-time-string "%h") returns "" instead of month

Previous Next

Package: emacs;

Reported by: andrea.rossetti <at> gmail.com

Date: Wed, 6 Nov 2013 00:07:01 UTC

Severity: minor

Found in version 24.3

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

Bug is archived. No further changes may be made.

Full log


Message #19 received at 15816-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: andrea.rossetti <at> gmail.com
Cc: 15816-done <at> debbugs.gnu.org
Subject: Re: bug#15816: 24.3;
 (format-time-string "%h") returns "" instead of month
Date: Wed, 06 Nov 2013 12:16:00 +0200
> From: andrea.rossetti <at> gmail.com
> Date: Wed, 06 Nov 2013 01:05:45 +0100
> 
>   when I execute 
> 
> (format-time-string "%h")
> 
> I get a return value of "" instead of "nov" meaning
> November, the current date month. On the contrary,
> execution of
> 
> (format-time-string "%b")
> 
> correctly returns "nov". I suppose this is
> due to the runtime of my Windows installation
> (an ordinary Windows 7 64-bit) not supporting
> C99 format modifiers of the C function "strftime".

Indeed, Windows version of strftime doesn't support %h.

>   If it affects other users too, my suggestion is to
> simply add a note in the docstring of format-time-string,
> saying that modifier "%h" requires a C99-compliant
> runtime. 

Done.




This bug report was last modified 11 years and 243 days ago.

Previous Next


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