all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Jason Rumney'" <jasonr@gnu.org>, "'Eli Zaretskii'" <eliz@gnu.org>
Cc: 9794@debbugs.gnu.org
Subject: bug#9794: 24.0.90; `format-time-string' no good for %Z
Date: Wed, 19 Oct 2011 07:28:51 -0700	[thread overview]
Message-ID: <B23DF31D57F040C6BD401D21B530D5F3@us.oracle.com> (raw)
In-Reply-To: <87fwipgltl.fsf@gnu.org>

> >> And just because a non-Windows developer thinks that letting them
> >> see "(Pacific Daylight Time)" is not useful to them and "()" is
> >> more meaningful.  Sheesh.
> >
> > No, it's because a _Windows_ developer found out that the Windows
> > time-zone names violate international standards for what %Z should
> > produce, which breaks other Emacs features that use the results.
> 
> The international standards alone aren't a problem - GNU software in
> general does not follow standards slavishly. The real problem is that
> for many uses of time format strings (which correctly check 
> for an empty %Z string and use %z as a backup), in mail, news, HTTP
> headers, XML documents and similar uses which rely on the strings
> being standards compliant, the non-compliant long forms returned by
> Windows tzname() cause real problems which are much more severe than
> the inconveniences that this change has caused.
> 
> 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 timezone
> names, which are apparently locale sensitive (which was one of the
> reported problems that led to them being removed in the first place).

Yes - that should be a no-brainer.  The only question should be about the
details: what format specifiers with what behavior.

I suggest format specifiers that let you alternatively do all of the following
for the case of time zone names (i.e. "pretty" names, not just %z numbers).

1. Use only POSIX-compliant time-zone pretty names, which can mean "" (empty -
no available POSIX name).

2. Use any available nonempty time-zone pretty names, with priority to nonempty
POSIX-compliant pretty names.

3. Same as #2, but with priority to system-supplied names, even when a
corresponding nonempty POSIX name is available.

4. Use only nonempty POSIX-compliant pretty names, when available, and fall back
to what %z does in cases where the POSIX name is empty.

#2 and #3 would also fall back to %z when no nonempty name is available.

Again, such details should be open for discussion, but it should be clear that
_some_ fix should be found so that programmers are able to provide "pretty" time
zone info to users whenever such info is available, whether that info is POSIX
or not.

Forcing the loss of useful time-zone info just because a user-understandable
time-zone description is not understandable to POSIX puts POSIX on top and
people at the bottom.  Users and Emacs programmers deserve better than that.






  reply	other threads:[~2011-10-19 14:28 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-19  6:44 bug#9794: 24.0.90; `format-time-string' no good for %Z Drew Adams
2011-10-19  7:43 ` Drew Adams
2011-10-19  8:33   ` Eli Zaretskii
2011-10-19 13:20     ` Jason Rumney
2011-10-19 14:28       ` Drew Adams [this message]
2011-10-19 15:26       ` Eli Zaretskii
2011-10-19 16:08       ` Eli Zaretskii
2011-10-20  7:48         ` Paul Eggert
2011-10-20  9:24           ` Eli Zaretskii
2011-10-20  9:46             ` Andreas Schwab
2011-10-20 10:05               ` Eli Zaretskii
2011-10-20 10:10                 ` Andreas Schwab
2011-10-20 10:49                   ` Eli Zaretskii
2011-10-20 11:22                     ` Andreas Schwab
2011-10-20 12:58                       ` Eli Zaretskii
2011-10-20 13:06                         ` Andreas Schwab
2011-10-20 13:18                           ` Eli Zaretskii
2011-10-20 15:23                         ` Paul Eggert
2011-10-20 16:03                           ` Eli Zaretskii
2011-10-21 15:40             ` Jason Rumney
2011-10-21 17:34               ` Paul Eggert
2011-10-22  9:21               ` bug#641: " Eli Zaretskii
2011-10-19 14:29     ` Drew Adams
2011-10-19 15:13       ` Eli Zaretskii
2011-10-19  7:47 ` Eli Zaretskii
2011-10-19 14:28   ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=B23DF31D57F040C6BD401D21B530D5F3@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=9794@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=jasonr@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.