From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#641: format-time-string %Z does not work, starting with Emacs 22.2 Date: Tue, 05 Aug 2008 08:28:18 +0200 Message-ID: <4897F302.7000408@gmx.at> References: <4897737C.90709@gmx.at> <001501c8f67e$7c63b300$0200a8c0@us.oracle.com> Reply-To: martin rudalics , 641@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1217918875 2666 80.91.229.12 (5 Aug 2008 06:47:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Aug 2008 06:47:55 +0000 (UTC) Cc: 641@emacsbugs.donarmstrong.com To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 05 08:48: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 1KQGLU-0004ks-8E for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Aug 2008 08:48:36 +0200 Original-Received: from localhost ([127.0.0.1]:42432 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KQGKY-0003y3-Q6 for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Aug 2008 02:47:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KQGKT-0003xr-Ko for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2008 02:47:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KQGKQ-0003xW-Ti for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2008 02:47:32 -0400 Original-Received: from [199.232.76.173] (port=52726 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KQGKQ-0003xT-O4 for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2008 02:47:30 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:49660) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KQGKQ-0006EA-HR for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2008 02:47:30 -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 m756lMkl021100; Mon, 4 Aug 2008 23:47:22 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m756Z3io016989; Mon, 4 Aug 2008 23:35:03 -0700 X-Loop: don@donarmstrong.com Resent-From: martin rudalics Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , don@donarmstrong.com Resent-Date: Tue, 05 Aug 2008 06:35:03 +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 641-submit@emacsbugs.donarmstrong.com id=B641.121791764315314 (code B ref 641); Tue, 05 Aug 2008 06:35:03 +0000 Original-Received: (at 641) by emacsbugs.donarmstrong.com; 5 Aug 2008 06:27:23 +0000 Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m756RJ2Z015246 for <641@emacsbugs.donarmstrong.com>; Mon, 4 Aug 2008 23:27:21 -0700 Original-Received: (qmail invoked by alias); 05 Aug 2008 06:27:12 -0000 Original-Received: from 62-47-51-35.adsl.highway.telekom.at (EHLO [62.47.51.35]) [62.47.51.35] by mail.gmx.net (mp006) with SMTP; 05 Aug 2008 08:27:12 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1932J5Sn8l3GJ5rr/NXJfT0bKEBjOP258lsGb+QVH CeKzAZIMc/I1dp User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: <001501c8f67e$7c63b300$0200a8c0@us.oracle.com> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.65 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Tue, 05 Aug 2008 02:47:32 -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:19022 Archived-At: >> * s/ms-w32.h: Don't define HAVE_TZNAME. [...] > Sorry; I don't know what all of that means. Jason did undefine HAVE_TZNAME on Windows in order to fix a bug with `current-time-zone'. As a consequence, the following code in strftime.c #if HAVE_TZNAME /* The tzset() call might have changed the value. */ if (!(zone && *zone) && tp->tm_isdst >= 0) zone = tzname[tp->tm_isdst]; #endif if (! zone) zone = ""; will produce an empty zone string on Windows. I suppose we need different strategies for handling `current-time-zone' and `format-time-string' on Windows. martin