1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2026-05-06 17:48:39 +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:
Paul Eggert
2015-05-11 21:50:27 -07:00
parent b8f4f99810
commit 7d9279a766
2 changed files with 5 additions and 0 deletions

3
NEWS
View File

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

View File

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