diff --git a/NEWS b/NEWS index 316893b..e95092c 100644 --- a/NEWS +++ b/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. diff --git a/zic.c b/zic.c index dcf51e2..e7b0081 100644 --- a/zic.c +++ b/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. */