From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#641: format-time-string %Z does not work, starting with Emacs 22.2 Date: Fri, 08 Aug 2008 20:16:41 +0300 Message-ID: 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: Eli Zaretskii , 641@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1218216475 19395 80.91.229.12 (8 Aug 2008 17:27:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Aug 2008 17:27:55 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Ted Zlatanov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 08 19:28:45 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 1KRVlZ-0002jz-IB for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Aug 2008 19:28:41 +0200 Original-Received: from localhost ([127.0.0.1]:51783 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRVkd-00021J-US for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Aug 2008 13:27:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KRVkY-00020M-DZ for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2008 13:27:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KRVkW-0001zM-VP for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2008 13:27:37 -0400 Original-Received: from [199.232.76.173] (port=42312 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRVkW-0001zG-D5 for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2008 13:27:36 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:53162) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KRVkV-0002Gd-S7 for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2008 13:27:36 -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 m78HRNTI008167; Fri, 8 Aug 2008 10:27:23 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m78HP5W0007011; Fri, 8 Aug 2008 10:25:05 -0700 X-Loop: don@donarmstrong.com Resent-From: Eli Zaretskii Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , don@donarmstrong.com Resent-Date: Fri, 08 Aug 2008 17:25:04 +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.12182158085193 (code B ref -1); Fri, 08 Aug 2008 17:25:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 8 Aug 2008 17:16:48 +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 m78HGiuf005187 for ; Fri, 8 Aug 2008 10:16:45 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KRVZz-0002o9-SA for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2008 13:16:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KRVZy-0002ms-R7 for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2008 13:16:43 -0400 Original-Received: from [199.232.76.173] (port=40500 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRVZy-0002ma-Kc for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2008 13:16:42 -0400 Original-Received: from mtaout5.012.net.il ([84.95.2.13]:14712) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KRVZy-0000WS-Eg for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2008 13:16:42 -0400 Original-Received: from HOME-C4E4A596F7 ([84.229.211.50]) by i_mtaout5.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K5A002CQLC97890@i_mtaout5.012.net.il> for bug-gnu-emacs@gnu.org; Fri, 08 Aug 2008 20:16:57 +0300 (IDT) In-reply-to: <86ljz7eefb.fsf@lifelogs.com> X-012-Sender: halo1@inter.net.il X-detected-kernel: by monty-python.gnu.org: Solaris 9.1 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Fri, 08 Aug 2008 13:27:37 -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:19146 Archived-At: > From: Ted Zlatanov > Date: Fri, 08 Aug 2008 10:04:24 -0500 > > Closest I could find is this chart: > > http://unicode.org/cldr/data/diff/supplemental/windows_tzid.html Thanks. I knew about it, it's on my disk for quite some time. > 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. Sorry, but I object to partial solutions like this, since I don't think providing just English names will satisfy most users. Perhaps someone could search the Windows files and find the translations; they must be somewhere inside the Windows installation, since the name of the time zone changes as soon as you modify a certain option in the regional settings. > In addition, we can attempt to guess the right value based on the > localized string and offset, e.g. Hebrew is probably Israel's time > zone. Hebrew is an easy case, because the characters tell you unequivocally what is the locale. Latin letters, for example, are much harder.