[tz] A small first step in merging NetBSD changes into tzcode

Guy Harris gharris at sonic.net
Thu Jan 5 08:49:43 UTC 2023


On Jan 4, 2023, at 5:03 PM, Paul Eggert via tz <tz at iana.org> wrote:

> I took a look at that and saw there are quite a few changes and NetBSD has some gimmicks to deal with old binaries with 32-bit time_t (is that still relevant?) so I decided to start with something simpler, namely zdump.c. I compared NetBSD zdump.c to tzcode and saw one improvement in NetBSD which used a NetBSD-specific function, and recoded that in standard POSIX by installing the attached patch into tzdb.

Is there a reason for doing

	char const *e = strerror(errno);
	fprintf(stderr, _("%s: setenv: %s\n"), progname, e);

rather than

	fprintf(stderr, _("%s: setenv: %s\n"), progname, strerror(errno));


More information about the tz mailing list