From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 0CC273858D33; Sat, 23 Mar 2024 21:11:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0CC273858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1711228289; bh=AF6CAFUNuhKY29Z0LakqRNdTKwyOiJ6G0yVZvWLOckY=; h=Date:From:To:Subject:Reply-To:References:In-Reply-To:From; b=x4AqwfBnwySRUdLDwkJD/klh9R2YSOzwkXnR5AVlZmqQHZPGVQzYgIDd7dg2jSkIu Eo4KvR8c6zNWnDzSLykpumnsNe/OAgdVBbcvSCGOFxBOTHopjIh1ilsLNWCZ6DZ5AH OpZONj1bwfSr2Q+hvi5NXKRKRMS+6ZMOkoYOtZJY= Received: by calimero.vinschen.de (Postfix, from userid 500) id 3F6DAA80D19; Sat, 23 Mar 2024 22:11:27 +0100 (CET) Date: Sat, 23 Mar 2024 22:11:27 +0100 From: Corinna Vinschen To: cygwin-apps@cygwin.com Subject: Re: [tz] Ubuntu drops old-style links Message-ID: Reply-To: cygwin-apps@cygwin.com Mail-Followup-To: cygwin-apps@cygwin.com References: <86ff5be5-ccae-4bc0-81af-46abc54e549d@systematicsw.ab.ca> <14e3ae03-bacf-4946-badc-19de78d9eece@SystematicSW.ab.ca> <88dd91a6-5fde-49a7-a0a5-afd5e9b01e15@SystematicSW.ab.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: List-Id: On Mar 23 10:38, Brian Inglis via Cygwin-apps wrote: > It looks to me that tzset.c prioritizes the Windows label over the country, > and it may be a better match prioritizing the country over the label, if the > country is not 001/"", nor ZZ, which are the generic entries. The Windows timezone is the relevant setting in the first place becasue that's what indicvates the actual local time *as the user chose*. The territory should only be a secondary hint to choose the right POSIX entry. For instance, I know people always using UTC, independently of their territory setting. If the territory rules, this user choice would be broken in Cygwin. > It also is not clear what tzset should do when tzmap has a list of zones to > choose from, for example: > > { L"Mountain Standard Time", L"CA", L"America/Edmonton > America/Cambridge_Bay America/Inuvik" }, > { L"Mountain Standard Time", L"US", L"America/Denver America/Boise" }, > { L"US Mountain Standard Time", L"CA", L"America/Creston > America/Dawson_Creek America/Fort_Nelson" }, > > it currently just prints the first, but perhaps it should print all relevant > entries and the caller should handle the alternatives? tzset is called from the shell default profile. It has to use exactly one, valid entry, so time works as desired without forcing interactivity. If the user doesn't like it, the user can always override tzset's choice in her own profile. Corinna