Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jan 1997 16:44:59 +0200 (SAT)
From:      John Hay <jhay@angel.cids.org.za>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/2595: tzsetup is broken
Message-ID:  <199701261444.QAA29388@angel.cids.org.za>
Resent-Message-ID: <199701261450.GAA10903@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701261444.QAA29388>