* zdump.c (main): Mention "FOO" if tzalloc("FOO") fails.

* NEWS: Document this.
This commit is contained in:
Paul Eggert
2014-08-26 14:17:32 -07:00
parent 3230f367b0
commit 9b7dd12d56
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -83,7 +83,8 @@ Unreleased, experimental changes
To build zdump with the system library, use 'make CFLAGS=-DUSE_LTZ=0
TZDOBJS=zdump.o CHECK_TIME_T_ALTERNATIVES='.
zdump now uses localtime_rz if available, as it's significantly faster.
zdump now uses localtime_rz if available, as it's significantly faster,
and it can help zdump better diagnose invalid time zone names.
Define HAVE_LOCALTIME_RZ to 0 to suppress this. HAVE_LOCALTIME_TZ
defaults to 1 if NETBSD_INSPIRED && USE_LTZ. When localtime_rz is
not available, zdump now uses localtime_r and tzset if available,
+1 -1
View File
@@ -634,7 +634,7 @@ main(int argc, char *argv[])
timezone_t tz = tzalloc(argv[i]);
char const *ab;
if (!tz) {
perror("tzalloc");
perror(argv[i]);
return EXIT_FAILURE;
}
if (! (vflag | Vflag)) {