From jhay@angel.cids.org.za  Sun Jan 26 06:45:10 1997
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 <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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 <jhay@angel.cids.org.za>
Reply-To: jhay@angel.cids.org.za
To: FreeBSD-gnats-submit@freebsd.org
Subject: tzsetup is broken
X-Send-Pr-Version: 3.2

>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:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 26 06:50:01 PST 1997
>Closed-Date:    Sat Feb 1 09:04:52 PST 1997
>Last-Modified:  Sat Feb  1 09:07:25 PST 1997
>Originator:     John Hay
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
At Home
>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:
>Release-Note:
>Audit-Trail:

From: Garrett Wollman <wollman@lcs.mit.edu>
To: jhay@angel.cids.org.za
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: bin/2595: tzsetup is broken
Date: Mon, 27 Jan 1997 12:05:04 -0500

 <<On Sun, 26 Jan 1997 16:44:59 +0200 (SAT), John Hay <jhay@angel.cids.org.za> said:
 
 > 	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 # 
 
 This should not cause a problem; viz., `US' or `RU'.  However, I will
 admit that the absence of `ZA' is a bug.  It is not, unfortunately,
 particularly near the head of my queue, so while this is my program, I
 am going to leave the PR unclaimed in case any enterprising souls out
 there care to attempt a fix before I get a chance at it.
 
 -GAWollman
 
 --
 Garrett A. Wollman   | O Siem / We are all family / O Siem / We're all the same
 wollman@lcs.mit.edu  | O Siem / The fires of freedom 
 Opinions not those of| Dance in the burning flame
 MIT, LCS, ANA, or NSA|                     - Susan Aglukark and Chad Irschick
State-Changed-From-To: open->closed 
State-Changed-By: jhay 
State-Changed-When: Sat Feb 1 09:04:52 PST 1997 
State-Changed-Why:  
Fixed in v1.5 of tzsetup.c. 
>Unformatted:
