mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2026-05-06 18:50:27 +00:00
tzselect: discard comments properly
The country code 'DM' matched data in the leading comments in zone1970.tab, which caused tzselect to misbehave. Problem reported by Owen Leibman in: http://mm.icann.org/pipermail/tz/2015-May/022265.html * tzselect.ksh (regions, TZ): Don't treat comments as data. * NEWS: Mention this.
This commit is contained in:
3
NEWS
3
NEWS
@@ -12,6 +12,9 @@ Unreleased, experimental changes
|
||||
When displaying data, tzselect converts it to the current locale's
|
||||
encoding if the iconv command works. (Problem reported by random832.)
|
||||
|
||||
tzselect no longer mishandles Dominica, fixing a bug introduced
|
||||
in Release 2014f. (Problem reported by Owen Leibman.)
|
||||
|
||||
|
||||
Release 2015d - 2015-04-24 08:09:46 -0700
|
||||
|
||||
|
||||
@@ -449,6 +449,7 @@ while
|
||||
}
|
||||
}
|
||||
}
|
||||
/^#/ { next }
|
||||
$1 ~ cc { print $4 }
|
||||
' <"$TZ_ZONE_TABLE"`
|
||||
|
||||
@@ -480,6 +481,7 @@ while
|
||||
}
|
||||
}
|
||||
}
|
||||
/^#/ { next }
|
||||
$1 ~ cc && $4 == region { print $3 }
|
||||
' <"$TZ_ZONE_TABLE"`
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user