From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: andrea.rossetti@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#15816: 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1383696433 2128 80.91.229.3 (6 Nov 2013 00:07:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Nov 2013 00:07:13 +0000 (UTC) To: 15816@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 06 01:07:17 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 1VdqeS-0003aH-PS for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Nov 2013 01:07:17 +0100 Original-Received: from localhost ([::1]:59135 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdqeR-0007rx-SE for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Nov 2013 19:07:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdqeJ-0007qx-K7 for bug-gnu-emacs@gnu.org; Tue, 05 Nov 2013 19:07:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VdqeE-0003uG-Cq for bug-gnu-emacs@gnu.org; Tue, 05 Nov 2013 19:07:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdqeE-0003uC-9F for bug-gnu-emacs@gnu.org; Tue, 05 Nov 2013 19:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VdqeD-0001wk-TB for bug-gnu-emacs@gnu.org; Tue, 05 Nov 2013 19:07:01 -0500 X-Loop: help-debbugs@gnu.org 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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13836963747407 (code B ref -1); Wed, 06 Nov 2013 00:07:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Nov 2013 00:06:14 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) 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-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:80048 Archived-At: 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)