[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] cvs_import and timezones
From: |
Zack Weinberg |
Subject: |
Re: [Monotone-devel] cvs_import and timezones |
Date: |
Tue, 17 Oct 2006 12:18:55 -0700 |
On 10/2/06, Tony Tung <address@hidden> 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().
Since we don't want to actually do that every single time cvs_commit
(...) is called, where would be a good place to call tzset()?
... Is it perhaps that we are using hand-rolled time conversion
functions that don't rely on the libc primitives, but do rely on the
zoneinfo database? If so _those_ should call tzset().
zw
- [Monotone-devel] cvs_import and timezones, Tony Tung, 2006/10/02
- Re: [Monotone-devel] cvs_import and timezones, Christof Petig, 2006/10/02
- Re: [Monotone-devel] cvs_import and timezones, Tony Tung, 2006/10/02
- Re: [Monotone-devel] cvs_import and timezones, Tony Tung, 2006/10/02
- Re: [Monotone-devel] cvs_import and timezones, Robert White, 2006/10/17
- Re: [Monotone-devel] cvs_import and timezones,
Zack Weinberg <=
- Re: [Monotone-devel] cvs_import and timezones, Tony Tung, 2006/10/17
- Message not available
- [Monotone-devel] Re: cvs_import and timezones, Zack Weinberg, 2006/10/17
- Re: [Monotone-devel] Re: cvs_import and timezones, Tony Tung, 2006/10/17
- Re: [Monotone-devel] Re: cvs_import and timezones, Zack Weinberg, 2006/10/18
- Re: [Monotone-devel] Re: cvs_import and timezones, Zack Weinberg, 2006/10/18