public inbox for libc-locales@sourceware.org
 help / color / mirror / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: keld@keldix.com
Cc: Marko Myllynen <myllynen@redhat.com>,
	 GNU C Library <libc-alpha@sourceware.org>,
	libc-locales@sourceware.org
Subject: Re: Removing locale timezone information
Date: Wed, 12 Aug 2015 21:07:00 -0000	[thread overview]
Message-ID: <55CB66C5.9030801@cs.ucla.edu> (raw)
In-Reply-To: <20150812140837.GA23436@www5.open-std.org>

keld@keldix.com wrote:

> My impression is that timezone changes are normally announced in due time
> so that they can be included in normal glibc release schedule, which
> I think is about twice a year, but irregulary.

No, that's incorrect.  We sometimes get only a few days' notice.  For tomorrow's 
change in North Korea, we got one week's notice.  We released a new tz version 
Monday.  We average about ten releases a year.

>> If there were an easy way tzselect could ask glibc "What country am I in?"
>> from a shell script

> Oh well, specs to do it has been available for something like 2 decades in 14652.

How can a time-oriented shell script use 14652 to ask "What country am I in?", 
preferably getting a 2-letter code?  I don't see anything in 14652's description 
of LC_TIME that would help an application discover what country the 
application's clocks should be set to.

Also, in 14652 LC_TIME's timezone keyword doesn't provide for TZ settings like 
'America/Los_Angeles' or 'Europe/Berlin' that are quite common in practice and 
are more useful than POSIX TZ settings.  So it doesn't appear that the 
14652-standardized info would be of much use to tzselect.

> I would much rather have users pick the
> locale, and then present them with some defaults, that then can be changed
> if necessary. And if geoip is available, then present a default
> and likely selection of locales based on that.

Certainly geolocation helps, but how would this be put into a glibc-style 
locale?  14652 doesn't provide for geolocation.  Most modern apps support TZ 
selection by maintaining their own geographical databases.  If it's really the 
intent to move this info into the locale, it sounds like a big project.

Once one has geolocation, the older selection mechanisms seem clumsy and 
outdated and really, not worth spending much time on.  So not only were the 
recently-removed timezone entries in glibc locales unused and woefully 
incomplete, application writers typically don't want that particular info anyway.

If (despite all my discouragment :-) you still want to improve locale timezone 
support for old-fashioned non-geolocation applications, I like Zack Weinberg's 
suggestion.  From tzselect's point of view, it'd be mildly helpful if a shell 
script could get a list of plausible TZ settings for the current locale, along 
with an informal description of each setting so that non-expert users could make 
an informed choice.  tzselect is already doing this now with its own database, 
but if glibc locales provided that information instead I suppose tzselect could 
use it.

  parent reply	other threads:[~2015-08-12 21:07 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-03 15:57 Marko Myllynen
2015-06-03 21:33 ` Paul Eggert
2015-06-03 21:33 ` keld
2015-06-05  8:28   ` Marko Myllynen
2015-08-06 21:45     ` keld
2015-08-06 21:45       ` pinskia
2015-08-06 21:46         ` keld
2015-08-07  2:33         ` Rich Felker
2015-08-07  0:45       ` Mike Frysinger
2015-08-09 21:12         ` keld
2015-08-07 21:49       ` Paul Eggert
2015-08-09 21:12         ` keld
2015-08-09 21:12           ` Paul Eggert
     [not found]             ` <20150812140837.GA23436@www5.open-std.org>
2015-08-12 21:07               ` Zack Weinberg
2015-08-12 23:13                 ` Keld Simonsen
2015-08-12 23:13                   ` Allan McRae
2015-08-12 21:07               ` Paul Eggert [this message]
2015-08-12 21:07               ` Andreas Schwab
2015-08-12 21:07               ` Allan McRae
2015-06-12 14:05 ` [PATCH] Remove " Marko Myllynen
2015-08-05  9:07   ` Mike Frysinger
2015-08-05 11:51     ` keld
2015-08-05 11:51       ` keld
2015-08-05 10:53         ` Mike Frysinger
2015-08-05 11:52           ` keld
2015-08-05 12:39             ` Andreas Schwab
2015-08-05 13:09               ` keld
2015-08-05 13:33             ` Mike Frysinger
2015-08-05 15:56               ` Keld Simonsen
2015-08-05 16:30                 ` Joseph Myers
2015-08-06 21:46                   ` Keld Simonsen
2015-08-06 21:46                     ` Joseph Myers
2015-08-06 21:46                     ` Andreas Schwab
2015-08-06 21:46                       ` Zack Weinberg
2015-08-06  2:53                 ` Mike Frysinger
2015-08-05 11:52         ` Andreas Schwab
2015-08-05 11:52           ` keld
2015-08-05 12:30             ` Andreas Schwab
2015-08-05 13:03               ` keld
2015-08-05 16:30         ` Paul Eggert
2015-08-06  2:56           ` Mike Frysinger
2015-08-06 17:13             ` keld
2015-08-06 17:13               ` Paul Eggert
2015-08-06 17:22                 ` keld
2015-08-06 17:14               ` pinskia
2015-08-06 17:25                 ` keld
2015-08-06 17:14           ` keld

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=55CB66C5.9030801@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=keld@keldix.com \
    --cc=libc-alpha@sourceware.org \
    --cc=libc-locales@sourceware.org \
    --cc=myllynen@redhat.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).