From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: Bug in format-time-string in emacs 21.1? Date: Tue, 12 Mar 2002 14:21:14 -0800 (PST) Sender: emacs-devel-admin@gnu.org Message-ID: <200203122221.g2CMLEX10014@shade.twinsun.com> References: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1015971866 386 80.91.224.249 (12 Mar 2002 22:24:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 12 Mar 2002 22:24:26 +0000 (UTC) Cc: emacs-devel@gnu.org Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16kuh0-000067-00 for ; Tue, 12 Mar 2002 23:24:26 +0100 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16kujL-0008BD-00 for ; Tue, 12 Mar 2002 23:26:52 +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 16kugg-0002EZ-00; Tue, 12 Mar 2002 17:24:06 -0500 Original-Received: from alcor.twinsun.com ([198.147.65.9]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16kudx-0001xc-00; Tue, 12 Mar 2002 17:21:17 -0500 Original-Received: from shade.twinsun.com ([192.54.239.27]) by alcor.twinsun.com (8.12.1/8.12.1) with ESMTP id g2CMLEPB016064; Tue, 12 Mar 2002 14:21:15 -0800 (PST) Original-Received: (eggert@localhost) by shade.twinsun.com (8.11.6+Sun/8.11.6) id g2CMLEX10014; Tue, 12 Mar 2002 14:21:14 -0800 (PST) Original-To: jasonr@gnu.org In-Reply-To: (jasonr@gnu.org) 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:1894 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1894 > From: Jason Rumney > Date: 12 Mar 2002 21:35:54 +0000 > > 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. This suggestion is a bit obsolescent, as %h is required by the current C standard (C99). And POSIX.2 is now obsolete; it has been folded into POSIX.1 (as of POSIX 1003.1-2001). I suggest adding a sentence like "Not all platforms support locale-specific formats" to the format-time-string doc string; that will document the general problem. I don't think it's worth documenting all the ins and outs of the various standards and implementations in the format-time-string doc; that will consume too much space and won't be all that useful. > Alternatively, we could introduce more conditional blocks to > strftime.c to do something sensible That would be a pain to support reliably. There are lots of little gotchas in this area. It's simpler just to let the underlying strftime handle (or mishandle) locale-related stuff. _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel