From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: Bug in format-time-string in emacs 21.1? Date: 12 Mar 2002 21:35:54 +0000 Sender: emacs-devel-admin@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1015969174 31209 80.91.224.249 (12 Mar 2002 21:39:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 12 Mar 2002 21:39:34 +0000 (UTC) Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16ktza-00087G-00 for ; Tue, 12 Mar 2002 22:39:34 +0100 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16ku1u-0007p3-00 for ; Tue, 12 Mar 2002 22:41:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16ktzM-0007jl-00; Tue, 12 Mar 2002 16:39:20 -0500 Original-Received: from tungsten.btinternet.com ([194.73.73.81]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16ktxG-0007bB-00 for ; Tue, 12 Mar 2002 16:37:10 -0500 Original-Received: from host213-122-104-133.in-addr.btopenworld.com ([213.122.104.133] helo=nyaumo.btinternet.com) by tungsten.btinternet.com with esmtp (Exim 3.22 #8) id 16ktx4-0001kC-00 for emacs-devel@gnu.org; Tue, 12 Mar 2002 21:36:58 +0000 Original-Received: from nyaumo.btinternet.com (localhost [127.0.0.1]) by nyaumo.btinternet.com (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id VAA00414 for ; Tue, 12 Mar 2002 21:35:56 GMT Original-To: emacs-devel@gnu.org In-Reply-To: Original-Lines: 31 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:1893 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1893 Pavel@Janik.cz (Pavel Jan=EDk) writes: > From: Eli Zaretskii > Date: Tue, 12 Mar 2002 07:59:31 +0200 (IST) >=20 > > > I think I've found a bug in the format-time-string function. In th= e=20 > > > documentation it says that the construct %h gives the abbreviated = month=20 > > > name. I doesn't seem to work with 21.1. The %b construct still wor= ks. > >=20 > > I think this is a known problem with the MS-Windows time routines: t= hey=20 >=20 > We should mention it in PROBLEMS then. Jason? It turns out that %h is marked in the source code as a POSIX.2 extension, along with quite a few other format specifiers (which are also not supported on Windows). Rather than putting a note in PROBLEMS specific to %h on Windows, it might be better to modify the doc-string for format-time-string, to make it clear which specifiers are guaranteed to work, and which are POSIX.2 or GNU extensions, and will only work on plaforms that support them. Alternatively, we could introduce more conditional blocks to strftime.c to do something sensible with the POSIX.2 extensions on platforms that only support POSIX.1 formats. I think most of them could be handled without too much effort. --=20 Jason Rumney _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel