mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2026-05-07 08:07:17 +00:00
zic: restore missing diagnostic with 'zic -v'
* zic.c (outzone): Restore diagnostic that was inadvertently suppressed by the 2013-09-08 change to the 400-years-hack. This doesn't affect zic's binary output; it affects only the diagnostics generated by 'zic -v'. The problem evinced itself with Asia/Tehran, which currently should generate a diagnostic, but doesn't without this patch. * NEWS: Document the above.
This commit is contained in:
3
NEWS
3
NEWS
@@ -15,6 +15,9 @@ Unreleased, experimental changes
|
||||
(Thanks to Theo Veenker for reporting the problem, for MinGW.)
|
||||
Also, fix some bugs on platforms that lack hard links but have symlinks.
|
||||
|
||||
'zic -v' again warns that Asia/Tehran has no POSIX environment variable
|
||||
to predict the far future, fixing a bug introduced in 2013e.
|
||||
|
||||
Changes affecting the build procedure
|
||||
|
||||
The 'leapseconds' file is again put into the tzdata tarball.
|
||||
|
||||
6
zic.c
6
zic.c
@@ -2099,12 +2099,12 @@ outzone(const struct zone * const zpfirst, const int zonecount)
|
||||
compat = stringzone(envvar, zpfirst, zonecount);
|
||||
version = compat < 2013 ? ZIC_VERSION_PRE_2013 : ZIC_VERSION;
|
||||
do_extend = compat < 0 || compat == YEAR_BY_YEAR_ZONE;
|
||||
if (noise && compat != 0 && compat != YEAR_BY_YEAR_ZONE) {
|
||||
if (compat < 0)
|
||||
if (noise) {
|
||||
if (!*envvar)
|
||||
warning("%s %s",
|
||||
_("no POSIX environment variable for zone"),
|
||||
zpfirst->z_name);
|
||||
else {
|
||||
else if (compat != 0 && compat != YEAR_BY_YEAR_ZONE) {
|
||||
/* Circa-COMPAT clients, and earlier clients, might
|
||||
not work for this zone when given dates before
|
||||
1970 or after 2038. */
|
||||
|
||||
Reference in New Issue
Block a user