Bug#1067057: tcpdump: Environment undocumented in the man page, yet the TZ variable has effect on the timezone

2024-04-11 Thread Guy Harris
> I'll look at getting the man pages fixed. I've filed https://bugzilla.kernel.org/show_bug.cgi?id=218711 against the strftime man page. For localtime(), it may be sufficient that the man page indicates that localtime() behaves as if tzset() were called, and that the tzset man page indicates

Bug#1067057: tcpdump: Environment undocumented in the man page, yet the TZ variable has effect on the timezone

2024-04-11 Thread Guy Harris
> Very little, if anything, of strftime() needs to handle TZ, because it's > handed a const struct tm *, generated either by a call to localtime() or > gmtime() If generated by a call to localtime(), localtime() has already done > all the work of converting a time_t to local time, meaning that

Bug#1067057: tcpdump: Environment undocumented in the man page, yet the TZ variable has effect on the timezone

2024-04-11 Thread Guy Harris
> tcpdump has no special handling of TZ, it just calls strftime() which handles > TZ as described in strftime(3). Very little, if anything, of strftime() needs to handle TZ, because it's handed a const struct tm *, generated either by a call to localtime() or gmtime() If generated by a call

Bug#1067057: tcpdump: Environment undocumented in the man page, yet the TZ variable has effect on the timezone

2024-03-18 Thread original poster
* Romain Francoise [2024-03-17 19:52]: > > tcpdump has no special handling of TZ, it just calls strftime() which > handles TZ as described in strftime(3). Thanks for the quick feedback. That’s a bit tricky one then. Users of tcpdump wouldn’t generally know that strftime() is in use and thus

Bug#1067057: tcpdump: Environment undocumented in the man page, yet the TZ variable has effect on the timezone

2024-03-17 Thread Romain Francoise
tcpdump has no special handling of TZ, it just calls strftime() which handles TZ as described in strftime(3). -- Romain Francoise https://people.debian.org/~rfrancoise/

Bug#1067057: tcpdump: Environment undocumented in the man page, yet the TZ variable has effect on the timezone

2024-03-17 Thread debbug . tcpdump
Package: tcpdump Version: 4.99.0-2+deb11u1 Severity: minor Tags: upstream X-Debbugs-Cc: debbug.tcpd...@sideload.33mail.com Normally by convention useful environmental variables are documented in an ENVIRONMENT section of the man page. There is no coverage of any env vars in the man page. I was