From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#641: format-time-string %Z does not work, starting with Emacs 22.2 Date: Fri, 8 Aug 2008 08:57:11 -0700 Message-ID: <002601c8f96f$6c224350$0200a8c0@us.oracle.com> References: <4897737C.90709@gmx.at> <86fxphgdw1.fsf@lifelogs.com> <489B441F.6070402@gmail.com> <489B5792.80504@gmail.com> <489B5CDC.3050902@gmail.com><489B634C.1040602@gmail.com><489B69B3.7000502@gmail.com> <86ljz7eefb.fsf@lifelogs.com> Reply-To: Drew Adams , 641@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1218211716 3658 80.91.229.12 (8 Aug 2008 16:08:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Aug 2008 16:08:36 +0000 (UTC) To: "'Ted Zlatanov'" , Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 08 18:09:27 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KRUWt-0006i1-8I for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Aug 2008 18:09:27 +0200 Original-Received: from localhost ([127.0.0.1]:51318 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRUVx-0005cR-IK for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Aug 2008 12:08:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KRUV6-0004x7-HK for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2008 12:07:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KRUV5-0004wh-LP for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2008 12:07:36 -0400 Original-Received: from [199.232.76.173] (port=56043 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRUV5-0004wd-Hb for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2008 12:07:35 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:34092) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KRUV5-0006Uj-2P for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2008 12:07:35 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m78G7NOZ016384; Fri, 8 Aug 2008 09:07:24 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m78G56nG015261; Fri, 8 Aug 2008 09:05:06 -0700 X-Loop: don@donarmstrong.com Resent-From: "Drew Adams" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , don@donarmstrong.com Resent-Date: Fri, 08 Aug 2008 16:05:06 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 641 X-Emacs-PR-Package: emacs,w32 X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.121821105512720 (code B ref -1); Fri, 08 Aug 2008 16:05:06 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 8 Aug 2008 15:57:35 +0000 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m78FvWGK012714 for ; Fri, 8 Aug 2008 08:57:33 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KRULM-0000du-36 for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2008 11:57:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KRULJ-0000dZ-L4 for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2008 11:57:30 -0400 Original-Received: from [199.232.76.173] (port=55601 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRULJ-0000dW-F9 for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2008 11:57:29 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]:38082) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KRULI-00053k-TD for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2008 11:57:29 -0400 Original-Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m78FvKqP008042; Fri, 8 Aug 2008 09:57:21 -0600 Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m78E3pGN007489; Fri, 8 Aug 2008 09:57:17 -0600 Original-Received: from inet-141-146-46-1.oracle.com by acsmt354.oracle.com with ESMTP id 11324381301218211030; Fri, 08 Aug 2008 08:57:10 -0700 Original-Received: from dradamslap1 (/69.181.100.12) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 08 Aug 2008 08:57:09 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <86ljz7eefb.fsf@lifelogs.com> Thread-Index: Acj5bcashNngfrBjREmmvNIeW35TlgAAEmgw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Fri, 08 Aug 2008 12:07:35 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:19145 Archived-At: > We could at least provide this, and if the mapping fails we > could print a message that it's an unknown string, and the > user can submit a bug. %Z could show the full Windows-provided > name, which IMHO is better than nothing. Yes, my point from the beginning is that the Windows name can be better than nothing, depending on your needs. It depends on what you want/need in any given context. I agree with Eli that we also need to let users specify, when they need it, a name guaranteed to be Posix-compliant, which would be "" if no other Posix name is appropriate. IOW, we should give users _both_ possibilities unambiguously: Posix-only and possibly-non-Posix, better-than-nothing, YMMV, human-readable name. We can do that by introducing a new format key, in addition to %Z. Either %Z or the new key can be for the better-than-nothing, human-readable name. %Z for this has the advantage of backward compatibility. %Z for the Posix-compliant name has the advantage that "Z" is itself a Posix convention. I'm OK with either approach. The important thing is to give users the option of specifying either name format, depending on their needs.