From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?R=C3=BCdiger?= Sonderfeld Newsgroups: gmane.emacs.bugs Subject: bug#15816: 24.3; (format-time-string "%h") returns "" instead of month Date: Wed, 06 Nov 2013 14:31:04 +0100 Message-ID: <3369232.afZtqa4znz@descartes> References: <84mwlics2u.fsf@gmail.com> <83d2md7s4f.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1383744745 2804 80.91.229.3 (6 Nov 2013 13:32:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Nov 2013 13:32:25 +0000 (UTC) Cc: andrea.rossetti@gmail.com, 15816-done@debbugs.gnu.org To: 15816@debbugs.gnu.org, eliz@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 06 14:32:28 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ve3De-0004qa-GK for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Nov 2013 14:32:26 +0100 Original-Received: from localhost ([::1]:34046 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ve3De-000622-2G for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Nov 2013 08:32:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52691) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ve3DQ-0005of-Og for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2013 08:32:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ve3DG-0000Wr-Q0 for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2013 08:32:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51123) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ve3DG-0000WY-Nj for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2013 08:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Ve3DG-0007O1-H9 for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2013 08:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?R=C3=BCdiger?= Sonderfeld Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Nov 2013 13:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15816 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org, Eli Zaretskii Original-Received: via spool by submit@debbugs.gnu.org id=B.138374471028374 (code B ref -1); Wed, 06 Nov 2013 13:32:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Nov 2013 13:31:50 +0000 Original-Received: from localhost ([127.0.0.1]:36909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ve3D4-0007NZ-5O for submit@debbugs.gnu.org; Wed, 06 Nov 2013 08:31:50 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50691) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ve3D2-0007NI-NP for submit@debbugs.gnu.org; Wed, 06 Nov 2013 08:31:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ve3Co-0000J3-60 for submit@debbugs.gnu.org; Wed, 06 Nov 2013 08:31:43 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:53515) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ve3Co-0000Ip-3X for submit@debbugs.gnu.org; Wed, 06 Nov 2013 08:31:34 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ve3Cg-0004la-Fm for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2013 08:31:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ve3CY-0008WR-Dj for bug-gnu-emacs@gnu.org; Wed, 06 Nov 2013 08:31:26 -0500 Original-Received: from ptmx.org ([178.63.28.110]:48128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ve3CY-0008Vw-8C; Wed, 06 Nov 2013 08:31:18 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by ptmx.org (Postfix) with ESMTP id 5A223236E7; Wed, 6 Nov 2013 14:31:16 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at ptmx.org Original-Received: from ptmx.org ([127.0.0.1]) by localhost (ptmx.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 54XcKdlcz9G1; Wed, 6 Nov 2013 14:31:13 +0100 (CET) Original-Received: from descartes.localnet (chello080108246092.7.14.vie.surfer.at [80.108.246.92]) by ptmx.org (Postfix) with ESMTPSA id 6052A2A6F3; Wed, 6 Nov 2013 14:31:13 +0100 (CET) User-Agent: KMail/4.11.2 (Linux/3.11.0-12-generic; KDE/4.11.2; x86_64; ; ) In-Reply-To: <83d2md7s4f.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:80076 Archived-At: On Wednesday 06 November 2013 12:16:00 Eli Zaretskii wrote: > > From: andrea.rossetti@gmail.com > > Date: Wed, 06 Nov 2013 01:05:45 +0100 > > 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". >=20 > Indeed, Windows version of strftime doesn't support %h. I just compared the docstring to the manpage of strftime on GNU/Linux a= nd the=20 following symbols are not ANSI C - %C is SU - %G,%g are TZ - %h is SU (%b) - %e is SU (%d with blanks) - %u is SU - %V is SU - %k is TZ (%H with blanks) - %l is TZ (%I with blanks) - %N not in manpage or glibc manual - %z is SU - %s is TZ - %D is SU ("%m/%d/%y", should not be used) - %T is SU ("%H:%M:%S") - %R is SU ("%H:%M") - %r is SU ("%I:%M:%S %p") - %t is SU (\t) - %n is SU (\n) (SU :: Single UNIX Specification and TZ :: Olson's timezone package) Maybe we should not mention %h, %D, %T, %R, %r, %t, %n at all because t= hese=20 can be replaced by the portable alternatives mentioned. The rest might= be a=20 bit tricky to replace. Could you try which of them work on Windows at = all? =20 (Sorry I don't have a current Windows Emacs available.) There are also %F in C99 (ISO 8601 date format) and %P (GNU extension, = am/pm),=20 which are not mentioned in the docstring right now. Regards, R=C3=BCdiger