On Oct 17, 2006, at 12:18 PM, Zack Weinberg wrote:
On 10/2/06, Tony Tung <[EMAIL PROTECTED]> wrote:
It seems tzset() is never called. Without that, the environment
variable TZ is never processed. I put it in cvs_commit::cvs_commit
(rcs_file const & r, string const & rcs_version, file_id const &
ident, cvs_history & cvs) just to test it, and it behaves correctly.
Uh, what??? It should not be necessary to call tzset() by hand; libc
does it automatically on the first use of a function that needs time
zone info, e.g. localtime().
This appears to be a platform-dependent issue.
On my Linux box, the manpage for tzset indicates that it is
automatically called. On the other hand, neither my OSX laptop nor
my FreeBSD box says that it is automatically called.
Tony
_______________________________________________
Monotone-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/monotone-devel