public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug time/29774] New: tzselect: doesn't handle new backlinks, places some countries in the wrong regions
@ 2022-11-10 16:35 karlp at tweak dot net.au
0 siblings, 0 replies; only message in thread
From: karlp at tweak dot net.au @ 2022-11-10 16:35 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=29774
Bug ID: 29774
Summary: tzselect: doesn't handle new backlinks, places some
countries in the wrong regions
Product: glibc
Version: 2.36
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: time
Assignee: unassigned at sourceware dot org
Reporter: karlp at tweak dot net.au
Target Milestone: ---
With the changes in tz for backzones and backlinks, at least starting from
here:
https://github.com/eggert/tz/commit/0b925f6d8aaf927ac20049ae0ff3b527684b60c7
with tzdb-2022c, the version of tzselect in glibc no longer places countries
like Iceland in "Atlantic" but in "Africa"
This is fixed and works correctly using tzselect from the tzdb itself, likely
via
https://github.com/eggert/tz/commit/e5f99199ff4efe0808a5076c2484d5b86193124d
glibc's tzselect hasn't been touched since it was synced with upstream to 2018g
( see
https://sourceware.org/git/?p=glibc.git;a=history;f=timezone/tzselect.ksh)
I propose that glibc update tzselect again from upstream. (This will likely
also fix https://sourceware.org/bugzilla/show_bug.cgi?id=28227)
Example using system tzselect (glibc) (no iceland)
```
karlp@strem:~/src/junk/tz.git ((2022e))$ /usr/bin/tzselect
Please identify a location so that time zone rules can be set correctly.
Please select a continent, ocean, "coord", or "TZ".
1) Africa 7) Europe
2) Americas 8) Indian
Ocean
3) Antarctica 9) Pacific
Ocean
4) Asia 10) coord -
I want to use geographical coordinates.
5) Atlantic Ocean 11) TZ - I
want to specify the timezone using the Posix TZ format.
6) Australia
#? 5
Please select a country whose clocks agree with yours.
1) Bermuda 4) Faroe Islands
7) Spain
2) Cape Verde 5) Portugal
3) Falkland Islands 6) South Georgia & the South
Sandwich Islands
#?
```
Example using upstream tzselect
```
karlp@strem:~/src/junk/tz.git ((2022e))$ ./tzselect
Please identify a location so that time zone rules can be set correctly.
Please select a continent, ocean, "coord", or "TZ".
1) Africa 7)
Australia
2) Americas 8) Europe
3) Antarctica 9) Indian
Ocean
4) Arctic Ocean 10) Pacific
Ocean
5) Asia 11) coord -
I want to use geographical coordinates.
6) Atlantic Ocean 12) TZ - I
want to specify the timezone using the Posix TZ format.
#? 6
Please select a country whose clocks agree with yours.
1) Bermuda 4) Faroe Islands
7) South Georgia & the South Sandwich Islands
2) Cape Verde 5) Iceland
8) Spain
3) Falkland Islands 6) Portugal
9) St Helena
#?
```
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-11-10 16:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-10 16:35 [Bug time/29774] New: tzselect: doesn't handle new backlinks, places some countries in the wrong regions karlp at tweak dot net.au
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).