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.help Subject: Re: Impossible to customize world clock Date: Tue, 09 Apr 2024 17:32:11 +0300 Message-ID: <86frvuwqs4.fsf@gnu.org> References: <171260575677.7.10531721947495332726.303927142@slmails.com> <87msq3fusd.fsf@gmail.com> <864jcbxk1b.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37892"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 09 16:32:54 2024 Return-path: Envelope-to: geh-help-gnu-emacs@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 1ruCWs-0009gi-2F for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 09 Apr 2024 16:32:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ruCWO-0008OZ-Ta; Tue, 09 Apr 2024 10:32:25 -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 1ruCWJ-0008G3-ON for help-gnu-emacs@gnu.org; Tue, 09 Apr 2024 10:32:19 -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 1ruCWJ-0001s5-EV for help-gnu-emacs@gnu.org; Tue, 09 Apr 2024 10:32:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=AM2qK4CIl1+iztQ4SotEQyitHcVYD6W+HQu7vvxTEHQ=; b=IqnPFZDf+Ye5 oqBKk+j+dGG6rxflHfVASvSr4fxNkdITaEPj/vi10lXQUYWJs2MZbomoBqV9HnHxT+KQVDjLbwGO8 BDzyPLPSwu/Mu48krFJ7HBlCAGtZ6sON9LBQG1SSiDxMy0Ex3Dth4Yz1lPatFbDIzpXUL6txmXbtV W2A/PX2GY4SU7REpGtIPuWOm/f074FYQ7iNJkLUMbfn+d/+GIkb4VkcANvNtuHXC+j6zu0SZdEakZ LIRjS+hFoa94MTbF96hh4T/P2m2MC40en9cHys3OunwPzLpjHJzDb96BaVP7wfm35ORGFwi2GjyUm K+onv7LKQtXyVHPOhgYDcg==; In-Reply-To: (message from Stefan Monnier via Users list for the GNU Emacs text editor on Tue, 09 Apr 2024 09:46:21 -0400) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146283 Archived-At: > Date: Tue, 09 Apr 2024 09:46:21 -0400 > From: Stefan Monnier via Users list for the GNU Emacs text editor > > > On MS-Windows, one should customize legacy-style-world-list instead. > > Hmm... it's too bad that in order to automatically make it work on both > MS-Windows and other systems (by automatically choosing which var to > use) we end up silently ignoring the user's config when the user isn't > aware of this mechanism. > > Maybe we should have chosen for `world-clock-list` a format like > > ("London" "Europe/London" "GMT0BST") I'm not sure it will work reliably, since the MS-Windows runtime supports a very small number of zones via those legacy specifiers, nowhere near the number of zones you will see in the zoneinfo directory of a typical Posix host. The more capable modern Windows time zones are arranged differently, not by city (with a few exceptions), and have different names. The conversion between the Posix time zones and Windows time zones is thus not trivial (but patches for doing that will be most welcome). As long as we go only by Posix names, I don't see how we can have a single structure with both Posix and Windows descriptors.