From unknown Sat Sep 06 21:07:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15816: 24.3; (format-time-string "%h") returns "" instead of month Resent-From: andrea.rossetti@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Nov 2013 00:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15816 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 15816@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13836963747407 (code B ref -1); Wed, 06 Nov 2013 00:07:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Nov 2013 00:06:14 +0000 Received: from localhost ([127.0.0.1]:36353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VdqdR-0001vP-VI for submit@debbugs.gnu.org; Tue, 05 Nov 2013 19:06:14 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38610) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VdqdQ-0001v9-8h for submit@debbugs.gnu.org; Tue, 05 Nov 2013 19:06:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VdqdF-0003e9-Qa for submit@debbugs.gnu.org; Tue, 05 Nov 2013 19:06:06 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54438) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdqdF-0003e5-NR for submit@debbugs.gnu.org; Tue, 05 Nov 2013 19:06:01 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40331) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdqdA-0007ox-HD for bug-gnu-emacs@gnu.org; Tue, 05 Nov 2013 19:06:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vdqd4-0003de-Ss for bug-gnu-emacs@gnu.org; Tue, 05 Nov 2013 19:05:56 -0500 Received: from mail-ee0-x233.google.com ([2a00:1450:4013:c00::233]:33350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vdqd4-0003dW-KR for bug-gnu-emacs@gnu.org; Tue, 05 Nov 2013 19:05:50 -0500 Received: by mail-ee0-f51.google.com with SMTP id t10so2133145eei.38 for ; Tue, 05 Nov 2013 16:05:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=mrQr3k4J3Nf/GOE2EFYJH93rmqn05hPKHduoC8VgVbc=; b=Mc2jD9/JaY5kEpxtNIwBDVkU61VVnxQVrtWqoEl2TPBtvDYYR8VurnJzd1mF5ksbf8 O9llK5nCXi7MhGDYHaEqm1Gdi0JklHpb2f7mffbL5dixbc+dpn0z1miep9zVxcPoOlyM 5iKOBgVdoyCTFPIIbEy5V2E2e2z9ixZ+PQG6zri2IEzpwZ41vCAQJ8NmyKdI9f+ZAkkx 83xCpPsJntGF0iHrW8j54yMFM6nupvTFmoCTMoKRS5ZlNYDcCjbnWfaT2oaagxk4II6m RBXEXeRzMEGF3otq/zFdZwGPPduG5PJXBUIoz51JPccj46Rc5so1tgAScvO3zBfmvN+T xpWg== X-Received: by 10.15.77.132 with SMTP id p4mr124129eey.95.1383696348792; Tue, 05 Nov 2013 16:05:48 -0800 (PST) Received: from LAPTOP-ANDREA.laptop-andrea.trieste.it (net-93-144-110-32.cust.dsl.teletu.it. [93.144.110.32]) by mx.google.com with ESMTPSA id i1sm66441994eeg.0.2013.11.05.16.05.46 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 05 Nov 2013 16:05:47 -0800 (PST) From: andrea.rossetti@gmail.com Date: Wed, 06 Nov 2013 01:05:45 +0100 Message-ID: <84mwlics2u.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Hello, 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". My conjecture came after reading of this page: http://www.cplusplus.com/reference/ctime/strftime/ . I kindly ask if someone good-willed Emacs user might see if the problem happens on his/her Windows machine. A test on Linux could be also a useful counterexample. 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. Thanks for your attention, kindest regards. Andrea In GNU Emacs 24.3.1 (i386-mingw-nt6.1.7600) of 2013-03-17 on MARVIN Windowing system distributor `Microsoft Corp.', version 6.1.7600 Configured using: `configure --with-gcc (4.7) --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include -ID:/devel/emacs/libs/libiconv-1.13.1-1-dev/include -ID:/devel/emacs/libs/libxml2-2.7.8/include/libxml2' Important settings: value of $LANG: ITA locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: w h e n SPC e x e c u t i n g SPC w i t h SPC C - j SPC I SPC g e t SPC " " SPC i n s t e a d SPC o f SPC " n o v " : ( f o r m a t - t i m e - s t r i n g SPC " % h " ) C-j " % b " SPC w o r k s SPC f o r SPC m e : ( f o r m a t - t i m e - s t r i n g SPC " % b " ) C-j O K : SPC I SPC g o t SPC " n o v " SPC a s SPC r e s u l t M-x r e p o r Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. scroll-up-command: End of buffer Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process w32 multi-tty emacs) From unknown Sat Sep 06 21:07:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15816: 24.3; (format-time-string "%h") returns "" instead of month Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Nov 2013 00:49:01 +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: To: andrea.rossetti@gmail.com Cc: 15816@debbugs.gnu.org Received: via spool by 15816-submit@debbugs.gnu.org id=B15816.138369889511172 (code B ref 15816); Wed, 06 Nov 2013 00:49:01 +0000 Received: (at 15816) by debbugs.gnu.org; 6 Nov 2013 00:48:15 +0000 Received: from localhost ([127.0.0.1]:36373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VdrI6-0002u8-8w for submit@debbugs.gnu.org; Tue, 05 Nov 2013 19:48:14 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:30660) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VdrI4-0002tS-6v for 15816@debbugs.gnu.org; Tue, 05 Nov 2013 19:48:12 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFxLzd/2dsb2JhbABEvw4Xc4IfAQVWIxALNBIUGA2ISLEfkA6NYYMpA4hhnBmBXoMV X-IPAS-Result: Av4EABK/CFFFxLzd/2dsb2JhbABEvw4Xc4IfAQVWIxALNBIUGA2ISLEfkA6NYYMpA4hhnBmBXoMV X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="37180050" Received: from 69-196-188-221.dsl.teksavvy.com (HELO pastel.home) ([69.196.188.221]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 05 Nov 2013 19:48:06 -0500 Received: by pastel.home (Postfix, from userid 20848) id 61A0560A07; Tue, 5 Nov 2013 19:48:06 -0500 (EST) From: Stefan Monnier Message-ID: References: <84mwlics2u.fsf@gmail.com> Date: Tue, 05 Nov 2013 19:48:06 -0500 In-Reply-To: <84mwlics2u.fsf@gmail.com> (andrea rossetti's message of "Wed, 06 Nov 2013 01:05:45 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > (format-time-string "%h") > I get a return value of "" instead of "nov" meaning I get "nov" here under GNU/Linux. Stefan From unknown Sat Sep 06 21:07:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15816: 24.3; (format-time-string "%h") returns "" instead of month Resent-From: Bastien Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Nov 2013 06:47: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: To: Stefan Monnier Cc: andrea.rossetti@gmail.com, 15816@debbugs.gnu.org Received: via spool by 15816-submit@debbugs.gnu.org id=B15816.138372039312581 (code B ref 15816); Wed, 06 Nov 2013 06:47:02 +0000 Received: (at 15816) by debbugs.gnu.org; 6 Nov 2013 06:46:33 +0000 Received: from localhost ([127.0.0.1]:36537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vdwsq-0003Gp-Qt for submit@debbugs.gnu.org; Wed, 06 Nov 2013 01:46:33 -0500 Received: from mail-we0-f180.google.com ([74.125.82.180]:57735) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vdwsn-0003GY-7k for 15816@debbugs.gnu.org; Wed, 06 Nov 2013 01:46:30 -0500 Received: by mail-we0-f180.google.com with SMTP id q59so4528181wes.11 for <15816@debbugs.gnu.org>; Tue, 05 Nov 2013 22:46:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; bh=cIL2zFltnXp76115+46Pe9Ir08Gi1vW2pMMq+34Oqro=; b=NHx9nPT6Uu9fm42/kBqzCENs7xzBkWkmU/TnWELqPHZc3uBHRYZ5lUxVkONfeduQgC XbxLFxSygtbVbi2M4wbfPKX7CX338hMiVvwxQeaqauyNm1RjQFSvO9l2qM8GI747xPdT 9IGa5oCmYtbruE8syNwOdst4qcdQb9MVcVhJH8jSnRjLG5smcocHKXjZQVXoVph5XriK 1WXSacx3NPV1Je+J+JKsehxOcLa2HN5Ja5vlDR7NJOsN3Op85Jp9KF4uc3qSc/qI1zsW sgBvdX1H3ihRpC0rUo1xWX4VZm7aA0XdailfI8TPLYbMOqB3LNdi3nPk6w6bNWF8V0dA eVqg== X-Received: by 10.180.39.140 with SMTP id p12mr19820097wik.12.1383720383273; Tue, 05 Nov 2013 22:46:23 -0800 (PST) Received: from bzg.localdomain (mar75-2-81-56-68-112.fbx.proxad.net. [81.56.68.112]) by mx.google.com with ESMTPSA id td6sm21269384wic.10.2013.11.05.22.46.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Nov 2013 22:46:20 -0800 (PST) Received: by bzg.localdomain (Postfix, from userid 1000) id AC10A1C2004B; Wed, 6 Nov 2013 07:46:18 +0100 (CET) From: Bastien In-Reply-To: (Stefan Monnier's message of "Tue, 05 Nov 2013 19:48:06 -0500") References: <84mwlics2u.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Date: Wed, 06 Nov 2013 07:46:18 +0100 Message-ID: <87eh6ujadh.fsf@bzg.ath.cx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Stefan Monnier writes: >> (format-time-string "%h") >> I get a return value of "" instead of "nov" meaning > > I get "nov" here under GNU/Linux. If I may chim in: someone reported the same problem on the orgmode list, this seems limited to Windows users. By the way, the docstring of `format-time-string' suggests that %b and %h are equivalent: is there a difference? -- Bastien From unknown Sat Sep 06 21:07:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15816: 24.3; (format-time-string "%h") returns "" instead of month Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Nov 2013 10:17:01 +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: To: Bastien Cc: andrea.rossetti@gmail.com, 15816@debbugs.gnu.org, monnier@iro.umontreal.ca Reply-To: Eli Zaretskii Received: via spool by 15816-submit@debbugs.gnu.org id=B15816.1383732999851 (code B ref 15816); Wed, 06 Nov 2013 10:17:01 +0000 Received: (at 15816) by debbugs.gnu.org; 6 Nov 2013 10:16:39 +0000 Received: from localhost ([127.0.0.1]:36698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ve0A7-0000DZ-LO for submit@debbugs.gnu.org; Wed, 06 Nov 2013 05:16:39 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]:50626) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ve0A3-0000DH-IC for 15816@debbugs.gnu.org; Wed, 06 Nov 2013 05:16:32 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MVU00K0071Y9R00@a-mtaout20.012.net.il> for 15816@debbugs.gnu.org; Wed, 06 Nov 2013 12:16:26 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MVU00JJ877DXA60@a-mtaout20.012.net.il>; Wed, 06 Nov 2013 12:16:25 +0200 (IST) Date: Wed, 06 Nov 2013 12:16:26 +0200 From: Eli Zaretskii In-reply-to: <87eh6ujadh.fsf@bzg.ath.cx> X-012-Sender: halo1@inter.net.il Message-id: <83bo1x7s3p.fsf@gnu.org> References: <84mwlics2u.fsf@gmail.com> <87eh6ujadh.fsf@bzg.ath.cx> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Bastien > Date: Wed, 06 Nov 2013 07:46:18 +0100 > Cc: andrea.rossetti@gmail.com, 15816@debbugs.gnu.org > > By the way, the docstring of `format-time-string' suggests that > %b and %h are equivalent: is there a difference? Not AFAIK. From unknown Sat Sep 06 21:07:53 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: andrea.rossetti@gmail.com Subject: bug#15816: closed (Re: bug#15816: 24.3; (format-time-string "%h") returns "" instead of month) Message-ID: References: <83d2md7s4f.fsf@gnu.org> <84mwlics2u.fsf@gmail.com> X-Gnu-PR-Message: they-closed 15816 X-Gnu-PR-Package: emacs Reply-To: 15816@debbugs.gnu.org Date: Wed, 06 Nov 2013 10:17:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1383733023-895-1" This is a multi-part message in MIME format... ------------=_1383733023-895-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #15816: 24.3; (format-time-string "%h") returns "" instead of month which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 15816@debbugs.gnu.org. --=20 15816: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D15816 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1383733023-895-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 15816-done) by debbugs.gnu.org; 6 Nov 2013 10:16:10 +0000 Received: from localhost ([127.0.0.1]:36695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ve09h-0000Ct-NA for submit@debbugs.gnu.org; Wed, 06 Nov 2013 05:16:10 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]:50467) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ve09e-0000CK-J0 for 15816-done@debbugs.gnu.org; Wed, 06 Nov 2013 05:16:07 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MVU00K0071Y9R00@a-mtaout20.012.net.il> for 15816-done@debbugs.gnu.org; Wed, 06 Nov 2013 12:16:00 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MVU00JWU76NMYB0@a-mtaout20.012.net.il>; Wed, 06 Nov 2013 12:16:00 +0200 (IST) Date: Wed, 06 Nov 2013 12:16:00 +0200 From: Eli Zaretskii Subject: Re: bug#15816: 24.3; (format-time-string "%h") returns "" instead of month In-reply-to: <84mwlics2u.fsf@gmail.com> X-012-Sender: halo1@inter.net.il To: andrea.rossetti@gmail.com Message-id: <83d2md7s4f.fsf@gnu.org> References: <84mwlics2u.fsf@gmail.com> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 15816-done Cc: 15816-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: andrea.rossetti@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. ------------=_1383733023-895-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 6 Nov 2013 00:06:14 +0000 Received: from localhost ([127.0.0.1]:36353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VdqdR-0001vP-VI for submit@debbugs.gnu.org; Tue, 05 Nov 2013 19:06:14 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38610) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VdqdQ-0001v9-8h for submit@debbugs.gnu.org; Tue, 05 Nov 2013 19:06:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VdqdF-0003e9-Qa for submit@debbugs.gnu.org; Tue, 05 Nov 2013 19:06:06 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54438) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdqdF-0003e5-NR for submit@debbugs.gnu.org; Tue, 05 Nov 2013 19:06:01 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40331) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdqdA-0007ox-HD for bug-gnu-emacs@gnu.org; Tue, 05 Nov 2013 19:06:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vdqd4-0003de-Ss for bug-gnu-emacs@gnu.org; Tue, 05 Nov 2013 19:05:56 -0500 Received: from mail-ee0-x233.google.com ([2a00:1450:4013:c00::233]:33350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vdqd4-0003dW-KR for bug-gnu-emacs@gnu.org; Tue, 05 Nov 2013 19:05:50 -0500 Received: by mail-ee0-f51.google.com with SMTP id t10so2133145eei.38 for ; Tue, 05 Nov 2013 16:05:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=mrQr3k4J3Nf/GOE2EFYJH93rmqn05hPKHduoC8VgVbc=; b=Mc2jD9/JaY5kEpxtNIwBDVkU61VVnxQVrtWqoEl2TPBtvDYYR8VurnJzd1mF5ksbf8 O9llK5nCXi7MhGDYHaEqm1Gdi0JklHpb2f7mffbL5dixbc+dpn0z1miep9zVxcPoOlyM 5iKOBgVdoyCTFPIIbEy5V2E2e2z9ixZ+PQG6zri2IEzpwZ41vCAQJ8NmyKdI9f+ZAkkx 83xCpPsJntGF0iHrW8j54yMFM6nupvTFmoCTMoKRS5ZlNYDcCjbnWfaT2oaagxk4II6m RBXEXeRzMEGF3otq/zFdZwGPPduG5PJXBUIoz51JPccj46Rc5so1tgAScvO3zBfmvN+T xpWg== X-Received: by 10.15.77.132 with SMTP id p4mr124129eey.95.1383696348792; Tue, 05 Nov 2013 16:05:48 -0800 (PST) Received: from LAPTOP-ANDREA.laptop-andrea.trieste.it (net-93-144-110-32.cust.dsl.teletu.it. [93.144.110.32]) by mx.google.com with ESMTPSA id i1sm66441994eeg.0.2013.11.05.16.05.46 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 05 Nov 2013 16:05:47 -0800 (PST) From: andrea.rossetti@gmail.com To: bug-gnu-emacs@gnu.org Subject: 24.3; (format-time-string "%h") returns "" instead of month Date: Wed, 06 Nov 2013 01:05:45 +0100 Message-ID: <84mwlics2u.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Hello, 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". My conjecture came after reading of this page: http://www.cplusplus.com/reference/ctime/strftime/ . I kindly ask if someone good-willed Emacs user might see if the problem happens on his/her Windows machine. A test on Linux could be also a useful counterexample. 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. Thanks for your attention, kindest regards. Andrea In GNU Emacs 24.3.1 (i386-mingw-nt6.1.7600) of 2013-03-17 on MARVIN Windowing system distributor `Microsoft Corp.', version 6.1.7600 Configured using: `configure --with-gcc (4.7) --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include -ID:/devel/emacs/libs/libiconv-1.13.1-1-dev/include -ID:/devel/emacs/libs/libxml2-2.7.8/include/libxml2' Important settings: value of $LANG: ITA locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: w h e n SPC e x e c u t i n g SPC w i t h SPC C - j SPC I SPC g e t SPC " " SPC i n s t e a d SPC o f SPC " n o v " : ( f o r m a t - t i m e - s t r i n g SPC " % h " ) C-j " % b " SPC w o r k s SPC f o r SPC m e : ( f o r m a t - t i m e - s t r i n g SPC " % b " ) C-j O K : SPC I SPC g o t SPC " n o v " SPC a s SPC r e s u l t M-x r e p o r Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. scroll-up-command: End of buffer Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process w32 multi-tty emacs) ------------=_1383733023-895-1-- From unknown Sat Sep 06 21:07:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15816: 24.3; (format-time-string "%h") returns "" instead of month 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: To: 15816@debbugs.gnu.org, eliz@gnu.org Cc: andrea.rossetti@gmail.com, 15816-done@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org, Eli Zaretskii Received: via spool by submit@debbugs.gnu.org id=B.138374471028374 (code B ref -1); Wed, 06 Nov 2013 13:32:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Nov 2013 13:31:50 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 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 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 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 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 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 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) 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) From: =?UTF-8?Q?R=C3=BCdiger?= Sonderfeld Date: Wed, 06 Nov 2013 14:31:04 +0100 Message-ID: <3369232.afZtqa4znz@descartes> 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> References: <84mwlics2u.fsf@gmail.com> <83d2md7s4f.fsf@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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 From unknown Sat Sep 06 21:07:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15816: 24.3; (format-time-string "%h") returns "" instead of month Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Nov 2013 16:55: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: To: =?UTF-8?Q?R=C3=BCdiger?= Sonderfeld Cc: 15816-done@debbugs.gnu.org, eliz@gnu.org, 15816@debbugs.gnu.org, andrea.rossetti@gmail.com Received: via spool by 15816-submit@debbugs.gnu.org id=B15816.138375684315796 (code B ref 15816); Wed, 06 Nov 2013 16:55:02 +0000 Received: (at 15816) by debbugs.gnu.org; 6 Nov 2013 16:54:03 +0000 Received: from localhost ([127.0.0.1]:37656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ve6Ml-00046c-2A for submit@debbugs.gnu.org; Wed, 06 Nov 2013 11:54:03 -0500 Received: from cantor2.suse.de ([195.135.220.15]:38519 helo=mx2.suse.de) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ve6MX-00045w-U6; Wed, 06 Nov 2013 11:54:01 -0500 Received: from relay1.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id CA6B1A688B; Wed, 6 Nov 2013 17:53:48 +0100 (CET) From: Andreas Schwab References: <84mwlics2u.fsf@gmail.com> <83d2md7s4f.fsf@gnu.org> <3369232.afZtqa4znz@descartes> X-Yow: I have many CHARTS and DIAGRAMS.. Date: Wed, 06 Nov 2013 15:16:27 +0100 In-Reply-To: <3369232.afZtqa4znz@descartes> ("=?UTF-8?Q?R=C3=BCdiger?= Sonderfeld"'s message of "Wed, 06 Nov 2013 14:31:04 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) RĂ¼diger Sonderfeld writes: > I just compared the docstring to the manpage of strftime on GNU/Linux and the > following symbols are not ANSI C C11 has all of them (execpt %k, %l, %N, %s). Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." From unknown Sat Sep 06 21:07:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15816: 24.3; (format-time-string "%h") returns "" instead of month Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Nov 2013 17:13:01 +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: To: =?UTF-8?Q?R=C3=BCdiger?= Sonderfeld Cc: 15816-done@debbugs.gnu.org, eliz@gnu.org, 15816@debbugs.gnu.org, andrea.rossetti@gmail.com Received: via spool by 15816-submit@debbugs.gnu.org id=B15816.138375794917622 (code B ref 15816); Wed, 06 Nov 2013 17:13:01 +0000 Received: (at 15816) by debbugs.gnu.org; 6 Nov 2013 17:12:29 +0000 Received: from localhost ([127.0.0.1]:37669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ve6eb-0004a9-4z for submit@debbugs.gnu.org; Wed, 06 Nov 2013 12:12:29 -0500 Received: from pruche.dit.umontreal.ca ([132.204.246.22]:40618) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ve6eZ-0004Zw-JE; Wed, 06 Nov 2013 12:12:28 -0500 Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id rA6HCMQC012280; Wed, 6 Nov 2013 12:12:22 -0500 Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 42A69B4327; Wed, 6 Nov 2013 12:12:22 -0500 (EST) From: Stefan Monnier Message-ID: References: <84mwlics2u.fsf@gmail.com> <83d2md7s4f.fsf@gnu.org> <3369232.afZtqa4znz@descartes> Date: Wed, 06 Nov 2013 12:12:21 -0500 In-Reply-To: <3369232.afZtqa4znz@descartes> ("=?UTF-8?Q?R=C3=BCdiger?= Sonderfeld"'s message of "Wed, 06 Nov 2013 14:31:04 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Level: X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0.2 X-NAI-Spam-Rules: 2 Rules triggered GEN_SPAM_FEATRE=0.2, RV4754=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4754> : inlines <202> : streams <1069056> : uri <1587462> X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) > (Sorry I don't have a current Windows Emacs available.) Not to encourage you to use the Windows version of Emacs, but I remember once having to debug a problem where the only recipe was on Windows, and being able to run Windows Emacs inside Wine (not perfectly, but good enough to track the problem down). Stefan From unknown Sat Sep 06 21:07:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15816: 24.3; (format-time-string "%h") returns "" instead of month Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Nov 2013 17:28:01 +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: To: =?UTF-8?Q?R=C3=BCdiger?= Sonderfeld Cc: andrea.rossetti@gmail.com, 15816@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 15816-submit@debbugs.gnu.org id=B15816.138375882919070 (code B ref 15816); Wed, 06 Nov 2013 17:28:01 +0000 Received: (at 15816) by debbugs.gnu.org; 6 Nov 2013 17:27:09 +0000 Received: from localhost ([127.0.0.1]:37684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ve6sn-0004xW-46 for submit@debbugs.gnu.org; Wed, 06 Nov 2013 12:27:09 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]:51018) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ve6sj-0004wy-9Q for 15816@debbugs.gnu.org; Wed, 06 Nov 2013 12:27:06 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MVU00100QKYFB00@a-mtaout20.012.net.il> for 15816@debbugs.gnu.org; Wed, 06 Nov 2013 19:26:58 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MVU0014AR4XKQ00@a-mtaout20.012.net.il>; Wed, 06 Nov 2013 19:26:58 +0200 (IST) Date: Wed, 06 Nov 2013 19:26:56 +0200 From: Eli Zaretskii In-reply-to: <3369232.afZtqa4znz@descartes> X-012-Sender: halo1@inter.net.il Message-id: <8361s57867.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <84mwlics2u.fsf@gmail.com> <83d2md7s4f.fsf@gnu.org> <3369232.afZtqa4znz@descartes> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: RĂ¼diger Sonderfeld > Cc: andrea.rossetti@gmail.com, 15816-done@debbugs.gnu.org > Date: Wed, 06 Nov 2013 14:31:04 +0100 > > I just compared the docstring to the manpage of strftime on GNU/Linux and the > 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 these > can be replaced by the portable alternatives mentioned. The rest might be a > bit tricky to replace. Could you try which of them work on Windows at all? > (Sorry I don't have a current Windows Emacs available.) All of them are supported, with the single exception of %r. From unknown Sat Sep 06 21:07:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15816: 24.3; (format-time-string "%h") returns "" instead of month Resent-From: =?UTF-8?Q?R=C3=BCdiger?= Sonderfeld Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Nov 2013 00:02: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: To: Eli Zaretskii Cc: andrea.rossetti@gmail.com, 15816@debbugs.gnu.org Received: via spool by 15816-submit@debbugs.gnu.org id=B15816.138456011610276 (code B ref 15816); Sat, 16 Nov 2013 00:02:02 +0000 Received: (at 15816) by debbugs.gnu.org; 16 Nov 2013 00:01:56 +0000 Received: from localhost ([127.0.0.1]:56338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VhTKi-0002fc-Nx for submit@debbugs.gnu.org; Fri, 15 Nov 2013 19:01:56 -0500 Received: from ptmx.org ([178.63.28.110]:35034) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VhTKd-0002fR-M9 for 15816@debbugs.gnu.org; Fri, 15 Nov 2013 19:01:48 -0500 Received: from localhost (localhost [127.0.0.1]) by ptmx.org (Postfix) with ESMTP id 28B0621FD8; Sat, 16 Nov 2013 01:01:46 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at ptmx.org Received: from ptmx.org ([127.0.0.1]) by localhost (ptmx.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3sWVOGcyIVeY; Sat, 16 Nov 2013 01:01:44 +0100 (CET) Received: from descartes.localnet (chello080108246092.7.14.vie.surfer.at [80.108.246.92]) by ptmx.org (Postfix) with ESMTPSA id 7BABF203A0; Sat, 16 Nov 2013 01:01:44 +0100 (CET) From: =?UTF-8?Q?R=C3=BCdiger?= Sonderfeld Date: Sat, 16 Nov 2013 01:01:32 +0100 Message-ID: <1906941.TC3lM9tOaX@descartes> User-Agent: KMail/4.11.2 (Linux/3.11.0-12-generic; KDE/4.11.2; x86_64; ; ) In-Reply-To: <8361s57867.fsf@gnu.org> References: <8361s57867.fsf@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) On Wednesday 06 November 2013 19:26:56 Eli Zaretskii wrote: > All of them are supported, with the single exception of %r. I'd suggest documenting %F then. It is the date format for ISO 8601. -- 8< ---------------------------------------------------------- >8 -- * editfns.c (Fformat_time_string): Doc fix. (Bug#15816) --- src/ChangeLog | 4 ++++ src/editfns.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 4c3811d..7921b96 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2013-11-16 R=C3=83=C2=BCdiger Sonderfeld + +=09* editfns.c (Fformat_time_string): Doc fix. (Bug#15816) + 2013-11-15 Paul Eggert =20 =09* data.c: Work around bogus GCC diagnostic about shift count. diff --git a/src/editfns.c b/src/editfns.c index 277e5b6..f17b02a 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -1722,6 +1722,7 @@ TIME is specified as (HIGH LOW USEC PSEC), as ret= urned by %c is the locale's date and time format. %x is the locale's "preferred" date format. %D is like "%m/%d/%y". +%F is the ISO 8601 date format (like "%Y-%m-%d"). =20 %R is like "%H:%M", %T is like "%H:%M:%S", %r is like "%I:%M:%S %p". %X is the locale's "preferred" time format. @@ -1740,7 +1741,7 @@ but takes up at least N (a number) positions. %EX is a locale's alternative version of %X; %OX is like %X, but uses the locale's number symbols. =20 -For example, to produce full ISO 8601 format, use "%Y-%m-%dT%T%z". +For example, to produce full ISO 8601 format, use "%FT%T%z". =20 usage: (format-time-string FORMAT-STRING &optional TIME UNIVERSAL) */= ) (Lisp_Object format_string, Lisp_Object timeval, Lisp_Object univers= al) --=20 1.8.4.2 From unknown Sat Sep 06 21:07:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#15816: 24.3; (format-time-string "%h") returns "" instead of month Resent-From: =?UTF-8?Q?R=C3=BCdiger?= Sonderfeld Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Dec 2013 14:43: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: To: Eli Zaretskii Cc: andrea.rossetti@gmail.com, 15816@debbugs.gnu.org Received: via spool by 15816-submit@debbugs.gnu.org id=B15816.138677297827879 (code B ref 15816); Wed, 11 Dec 2013 14:43:02 +0000 Received: (at 15816) by debbugs.gnu.org; 11 Dec 2013 14:42:58 +0000 Received: from localhost ([127.0.0.1]:43080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vql06-0007Fb-5h for submit@debbugs.gnu.org; Wed, 11 Dec 2013 09:42:58 -0500 Received: from ptmx.org ([178.63.28.110]:35661) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vql03-0007FR-DB for 15816@debbugs.gnu.org; Wed, 11 Dec 2013 09:42:56 -0500 Received: from localhost (localhost [127.0.0.1]) by ptmx.org (Postfix) with ESMTP id 134142289D; Wed, 11 Dec 2013 15:42:54 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at ptmx.org Received: from ptmx.org ([127.0.0.1]) by localhost (ptmx.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4S2xxLBBNYhn; Wed, 11 Dec 2013 15:42:36 +0100 (CET) Received: from descartes.localnet (chello080108246092.7.14.vie.surfer.at [80.108.246.92]) by ptmx.org (Postfix) with ESMTPSA id 2EFDC211A0; Wed, 11 Dec 2013 15:42:28 +0100 (CET) From: =?UTF-8?Q?R=C3=BCdiger?= Sonderfeld Date: Wed, 11 Dec 2013 15:42:10 +0100 Message-ID: <1546747.7kdV0yWjTE@descartes> User-Agent: KMail/4.11.2 (Linux/3.11.0-12-generic; KDE/4.11.2; x86_64; ; ) In-Reply-To: <1906941.TC3lM9tOaX@descartes> References: <8361s57867.fsf@gnu.org> <1906941.TC3lM9tOaX@descartes> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Pushed the change to trunk. Regards, R=C3=BCdiger On Saturday 16 November 2013 01:01:32 R=C3=BCdiger Sonderfeld wrote: > On Wednesday 06 November 2013 19:26:56 Eli Zaretskii wrote: > > All of them are supported, with the single exception of %r. >=20 > I'd suggest documenting %F then. It is the date format for ISO 8601.= >=20 > -- 8< ---------------------------------------------------------- >8 -= - >=20 > * editfns.c (Fformat_time_string): Doc fix. (Bug#15816) >=20 > --- > src/ChangeLog | 4 ++++ > src/editfns.c | 3 ++- > 2 files changed, 6 insertions(+), 1 deletion(-) >=20 > diff --git a/src/ChangeLog b/src/ChangeLog > index 4c3811d..7921b96 100644 > --- a/src/ChangeLog > +++ b/src/ChangeLog > @@ -1,3 +1,7 @@ > +2013-11-16 R=C3=83=C2=BCdiger Sonderfeld > + > +=09* editfns.c (Fformat_time_string): Doc fix. (Bug#15816) > + > 2013-11-15 Paul Eggert >=20 > =09* data.c: Work around bogus GCC diagnostic about shift count. > diff --git a/src/editfns.c b/src/editfns.c > index 277e5b6..f17b02a 100644 > --- a/src/editfns.c > +++ b/src/editfns.c > @@ -1722,6 +1722,7 @@ TIME is specified as (HIGH LOW USEC PSEC), as r= eturned > by %c is the locale's date and time format. > %x is the locale's "preferred" date format. > %D is like "%m/%d/%y". > +%F is the ISO 8601 date format (like "%Y-%m-%d"). >=20 > %R is like "%H:%M", %T is like "%H:%M:%S", %r is like "%I:%M:%S %p".= > %X is the locale's "preferred" time format. > @@ -1740,7 +1741,7 @@ but takes up at least N (a number) positions. > %EX is a locale's alternative version of %X; > %OX is like %X, but uses the locale's number symbols. >=20 > -For example, to produce full ISO 8601 format, use "%Y-%m-%dT%T%z". > +For example, to produce full ISO 8601 format, use "%FT%T%z". >=20 > usage: (format-time-string FORMAT-STRING &optional TIME UNIVERSAL) = */) > (Lisp_Object format_string, Lisp_Object timeval, Lisp_Object unive= rsal)