unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* time.el, world-clock default Calcutta/Kolkata?
@ 2024-08-07 18:59 Gijs Hillenius
  2024-08-08  5:04 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Gijs Hillenius @ 2024-08-07 18:59 UTC (permalink / raw)
  To: emacs-devel

Hello

time.el defines

(defcustom zoneinfo-style-world-list
  '(("America/Los_Angeles" "Seattle")
    ("America/New_York" "New York")
    ("Europe/London" "London")
    ("Europe/Paris" "Paris")
    ("Asia/Calcutta" "Bangalore")
    ("Asia/Tokyo" "Tokyo"))

Which for me has been returning the wrong response for Bangalore. This
is because in Debian (Testing and Unstable versions), tzdata no longer
recognises Calcutta. That was the official name until 2001, it is now
Kolkata, and earlier this year Calcutta was removed from tzdata, 

I can easily fix this by installing Debian's tzdata-legacy.

Alternatively, should time.el be modified to define ("Asia/Calcutta"
"Bangalore")?

Kind greetings

Gijs




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: time.el, world-clock default Calcutta/Kolkata?
  2024-08-07 18:59 time.el, world-clock default Calcutta/Kolkata? Gijs Hillenius
@ 2024-08-08  5:04 ` Eli Zaretskii
  2024-08-08  6:10   ` Paul Eggert
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2024-08-08  5:04 UTC (permalink / raw)
  To: Gijs Hillenius, Paul Eggert; +Cc: emacs-devel

> From: Gijs Hillenius <gijs@hillenius.net>
> Date: Wed, 07 Aug 2024 20:59:51 +0200
> 
> Hello
> 
> time.el defines
> 
> (defcustom zoneinfo-style-world-list
>   '(("America/Los_Angeles" "Seattle")
>     ("America/New_York" "New York")
>     ("Europe/London" "London")
>     ("Europe/Paris" "Paris")
>     ("Asia/Calcutta" "Bangalore")
>     ("Asia/Tokyo" "Tokyo"))
> 
> Which for me has been returning the wrong response for Bangalore. This
> is because in Debian (Testing and Unstable versions), tzdata no longer
> recognises Calcutta. That was the official name until 2001, it is now
> Kolkata, and earlier this year Calcutta was removed from tzdata, 
> 
> I can easily fix this by installing Debian's tzdata-legacy.
> 
> Alternatively, should time.el be modified to define ("Asia/Calcutta"
> "Bangalore")?

You mean, ("Asia/Kolkata" "Bangalore"), right?

We cannot do that unconditionally, I think, because that would screw
systems where tzdata still has Calcutta.  If we can detect failure to
find a time zone, then maybe adding some fallback mechanism to
world-clock is the way forward, so that we could try one of the
alternatives and fall back to the other if that fails.

Or maybe we should replace that entry with some other Indian time
zone, which is less controversial?  After all, it's just the default
value of a defcustom.

Paul, any other suggestions?



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: time.el, world-clock default Calcutta/Kolkata?
  2024-08-08  5:04 ` Eli Zaretskii
@ 2024-08-08  6:10   ` Paul Eggert
  2024-08-09  8:41     ` Stefan Kangas
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Eggert @ 2024-08-08  6:10 UTC (permalink / raw)
  To: Eli Zaretskii, Gijs Hillenius; +Cc: emacs-devel

On 2024-08-07 22:04, Eli Zaretskii wrote:
> You mean, ("Asia/Kolkata" "Bangalore"), right?
> 
> We cannot do that unconditionally, I think, because that would screw
> systems where tzdata still has Calcutta.

Ordinarly TZDB has both Asia/Kolkata (the standard name) and 
Asia/Calcutta (the backward-compatibility alias). Although the aliases 
are normally present, they are optional. It's safe to change time.el to 
use Asia/Kolkata now, as the standard name changed in 2008 and even 
ancient systems keep up with TZDB in order to function properly. So I 
installed that change into Emacs master.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: time.el, world-clock default Calcutta/Kolkata?
  2024-08-08  6:10   ` Paul Eggert
@ 2024-08-09  8:41     ` Stefan Kangas
  2024-08-09 10:37       ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Kangas @ 2024-08-09  8:41 UTC (permalink / raw)
  To: Paul Eggert, Eli Zaretskii, Gijs Hillenius; +Cc: emacs-devel

Paul Eggert <eggert@cs.ucla.edu> writes:

> Ordinarly TZDB has both Asia/Kolkata (the standard name) and
> Asia/Calcutta (the backward-compatibility alias). Although the aliases
> are normally present, they are optional. It's safe to change time.el to
> use Asia/Kolkata now, as the standard name changed in 2008 and even
> ancient systems keep up with TZDB in order to function properly. So I
> installed that change into Emacs master.

Shouldn't that fix be installed on emacs-30?



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: time.el, world-clock default Calcutta/Kolkata?
  2024-08-09  8:41     ` Stefan Kangas
@ 2024-08-09 10:37       ` Eli Zaretskii
  0 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2024-08-09 10:37 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: eggert, gijs, emacs-devel

> From: Stefan Kangas <stefankangas@gmail.com>
> Date: Fri, 9 Aug 2024 08:41:20 +0000
> Cc: emacs-devel@gnu.org
> 
> Paul Eggert <eggert@cs.ucla.edu> writes:
> 
> > Ordinarly TZDB has both Asia/Kolkata (the standard name) and
> > Asia/Calcutta (the backward-compatibility alias). Although the aliases
> > are normally present, they are optional. It's safe to change time.el to
> > use Asia/Kolkata now, as the standard name changed in 2008 and even
> > ancient systems keep up with TZDB in order to function properly. So I
> > installed that change into Emacs master.
> 
> Shouldn't that fix be installed on emacs-30?

It isn't urgent enough for that, IMO.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-08-09 10:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-07 18:59 time.el, world-clock default Calcutta/Kolkata? Gijs Hillenius
2024-08-08  5:04 ` Eli Zaretskii
2024-08-08  6:10   ` Paul Eggert
2024-08-09  8:41     ` Stefan Kangas
2024-08-09 10:37       ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

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

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).