From owner-freebsd-bugs Sun Jan 26 06:50:05 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id GAA10910 for bugs-outgoing; Sun, 26 Jan 1997 06:50:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id GAA10903; Sun, 26 Jan 1997 06:50:03 -0800 (PST) Resent-Date: Sun, 26 Jan 1997 06:50:03 -0800 (PST) Resent-Message-Id: <199701261450.GAA10903@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, jhay@angel.cids.org.za Received: from callisto.cids.org.za (callisto.cids.org.za [146.64.58.43]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id GAA10757 for ; Sun, 26 Jan 1997 06:45:07 -0800 (PST) Received: from angel.cids.org.za (angel.cids.org.za [146.64.84.9]) by callisto.cids.org.za (8.8.5/8.8.5) with ESMTP id QAA17591 for ; Sun, 26 Jan 1997 16:45:01 +0200 (SAT) Received: (from jhay@localhost) by angel.cids.org.za (8.8.4/8.8.2) id QAA29388; Sun, 26 Jan 1997 16:44:59 +0200 (SAT) Message-Id: <199701261444.QAA29388@angel.cids.org.za> Date: Sun, 26 Jan 1997 16:44:59 +0200 (SAT) From: John Hay Reply-To: jhay@angel.cids.org.za To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/2595: tzsetup is broken Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2595 >Category: bin >Synopsis: tzsetup don't get all zones right eg. South Africa >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jan 26 06:50:01 PST 1997 >Last-Modified: >Originator: John Hay >Organization: At Home >Release: FreeBSD 3.0-CURRENT i386 >Environment: FreeBSD 2.2-BETA and FreeBSD 3.0-CURRENT >Description: South Africa and some other countries don't feature in tzsetup, although they are in the /usr/share/misc/iso3166 and /usr/share/zoneinfo/zone.tab files, which tzsetup use the get its data. After looking at the code a little, it seems that it is because of the way tzsetup works. tzsetup uses the two letter iso3166 country code to do its indexing, but the zone.tab file have more than one entry with the same country code. The result is that some countries like Spain appear in three continents: Europe, Africa and Atlantic. Its appearance in Africa is axactly where South Africa should have been. --------- angel:/usr/src # grep '^ES' /usr/share/misc/iso3166 ES ESP 724 Spain angel:/usr/src # grep '^ES' /usr/share/zoneinfo/zone.tab ES +4024-00341 Europe/Madrid mainland ES +3553-00519 Africa/Ceuta Ceuta & Melilla ES +2806-01524 Atlantic/Canary Canary Islands angel:/usr/src # -------- >How-To-Repeat: On any 2.2-BETA or 3.0-CURRENT machine go into tzsetup and see if you can find Africa/South Africa or see how many times you can find Spain. :-) >Fix: >Audit-Trail: >Unformatted: