From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: time.el, world-clock default Calcutta/Kolkata? Date: Thu, 08 Aug 2024 08:04:56 +0300 Message-ID: <86ttfvmwp3.fsf@gnu.org> References: <87cymk9n14.fsf@hillenius.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20706"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: =?utf-8?Q?G=C4=B3s?= Hillenius , Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 08 07:06:06 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sbvLi-0005GH-5v for ged-emacs-devel@m.gmane-mx.org; Thu, 08 Aug 2024 07:06:06 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sbvKi-00059L-3m; Thu, 08 Aug 2024 01:05:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sbvKg-000598-Hd for emacs-devel@gnu.org; Thu, 08 Aug 2024 01:05:02 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sbvKe-00016p-4x; Thu, 08 Aug 2024 01:05:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=mixHpA6Wb6bdbibseyHNlyLjidHqN5ILvtio6Rrcc1k=; b=RMf07PS/zMzs+0HIf2fO SDIxmaWI91my2rlemCRLmjHvSnHfVf/kVKunX5NkEorlP2tEaRT4mhtr25bAVW0atIsK249Q3WLxG zYkziulL8nkclPaCFFLB/4jRTXY2popAKpGfLB2z1PielU7OpnDmkqVJp4obw0pSBCr9QLlWWIo5F FBmAPNEIR3UvYx4SlDeIBNAiqVFrN0uiAtBLCQ9Ve5NUhaYICIUf7lF5bocYwSD8PA1UWA7GVah6m Q9b+X8Y4hRWuD/5crmyIX3UGeXys9+SLOYb49B2mpnm85rLZzBBkc1nnICBzZOteDJonfEC5ri0qq 2u5z+WAR7707MA==; In-Reply-To: <87cymk9n14.fsf@hillenius.net> (message from =?utf-8?Q?G?= =?utf-8?Q?=C4=B3s?= Hillenius on Wed, 07 Aug 2024 20:59:51 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:322532 Archived-At: > From: Gijs Hillenius > 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?