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#9794: 24.0.90; `format-time-string' no good for %Z Date: Wed, 19 Oct 2011 18:08:59 +0200 Message-ID: <83pqhtt144.fsf@gnu.org> References: <68A313A7DDAA4912A255DAFE495606F9@us.oracle.com> <24FDB65B0E784E978085D30A7CBF9FAF@us.oracle.com> <8362jlv0rq.fsf@gnu.org> <87fwipgltl.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: dough.gmane.org 1319040623 6264 80.91.229.12 (19 Oct 2011 16:10:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 19 Oct 2011 16:10:23 +0000 (UTC) Cc: 9794@debbugs.gnu.org To: Jason Rumney , Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 19 18:10:14 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RGYib-0008A5-7N for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Oct 2011 18:10:13 +0200 Original-Received: from localhost ([::1]:45346 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGYia-0000B8-AX for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Oct 2011 12:10:12 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33036) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGYiU-00008K-PR for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2011 12:10:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGYiM-00078v-S6 for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2011 12:10:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGYiM-00078o-L8 for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2011 12:09:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RGYjN-0005Ae-L9 for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2011 12:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Oct 2011 16:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9794 X-GNU-PR-Package: emacs,w32 X-GNU-PR-Keywords: Original-Received: via spool by 9794-submit@debbugs.gnu.org id=B9794.131904061019812 (code B ref 9794); Wed, 19 Oct 2011 16:11:01 +0000 Original-Received: (at 9794) by debbugs.gnu.org; 19 Oct 2011 16:10:10 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGYiX-00059U-Rg for submit@debbugs.gnu.org; Wed, 19 Oct 2011 12:10:10 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGYiV-00059I-KI for 9794@debbugs.gnu.org; Wed, 19 Oct 2011 12:10:09 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LTB00200M49JH00@a-mtaout23.012.net.il> for 9794@debbugs.gnu.org; Wed, 19 Oct 2011 18:08:58 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.212.197]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LTB002DCM6XJJ00@a-mtaout23.012.net.il>; Wed, 19 Oct 2011 18:08:58 +0200 (IST) In-reply-to: <87fwipgltl.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 19 Oct 2011 12:11:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:52861 Archived-At: > From: Jason Rumney > Cc: Drew Adams , 9794@debbugs.gnu.org > Date: Wed, 19 Oct 2011 21:20:06 +0800 >=20 > One proposal in that thread was to introduce a new format specifier= to > print the long names (on non-Windows platforms it could output the > commonly used "Continent/City" format). Another proposal was that %= EZ > could be used, which is especially fitting, for the Windows timezon= e > names, which are apparently locale sensitive (which was one of the > reported problems that led to them being removed in the first place= ). I used the %EZ format proposed by Andreas Schwab, and came up with the Windows-specific patch below. Paul, would such a change be acceptable by gnulib? =3D=3D=3D modified file 'ChangeLog' --- ChangeLog=092011-10-18 18:12:53 +0000 +++ ChangeLog=092011-10-19 16:02:14 +0000 @@ -1,3 +1,8 @@ +2011-10-19 Eli Zaretskii + +=09* lib/strftime.c (strftime_case_) [_WIN32 || __WIN32__]: Provide +=09non-empty time-zone string only for the %EZ format specifier. + 2011-10-18 Jan Dj=C3=A4rv =20 =09* configure.in (GLIB_REQUIRED, GTK_REQUIRED): Set to 2.10 (Bug#97= 86). =3D=3D=3D modified file 'lib/strftime.c' --- lib/strftime.c=092011-03-31 04:24:03 +0000 +++ lib/strftime.c=092011-10-19 15:48:42 +0000 @@ -1302,6 +1302,12 @@ strftime_case_ (bool upcase, STREAM_OR_C } =20 #if HAVE_TZNAME +#if (defined _WIN32 || defined __WIN32__) +=09 /* Microsoft runtime produces time-zone names that are not +=09 RFC822 compliant, and are also localized. So we only +=09 produce them for %EZ. */ +=09 if (modifier =3D=3D L_('E')) +#endif /* The tzset() call might have changed the value. */ if (!(zone && *zone) && tp->tm_isdst >=3D 0) zone =3D tzname[tp->tm_isdst !=3D 0]; =3D=3D=3D modified file 'nt/ChangeLog' --- nt/ChangeLog=092011-09-04 21:52:59 +0000 +++ nt/ChangeLog=092011-10-19 16:02:25 +0000 @@ -1,3 +1,7 @@ +2011-10-19 Eli Zaretskii + +=09* config.nt (HAVE_TZNAME, HAVE_DECL_TZNAME): Define. + 2011-09-04 Paul Eggert =20 =09* config.nt (HAVE_SNPRINTF): New macro. =3D=3D=3D modified file 'nt/config.nt' --- nt/config.nt=092011-09-26 03:20:03 +0000 +++ nt/config.nt=092011-10-19 15:57:12 +0000 @@ -187,7 +187,14 @@ along with GNU Emacs. If not, see