This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: expect and tclsh give different output from "clock scan"
- From: Keith Seitz <keiths at redhat dot com>
- To: Brad Gutt <bgutt3 at yahoo dot com>
- Cc: "insight at sources dot redhat dot com" <insight at sources dot redhat dot com>
- Date: Wed, 05 Jan 2005 15:14:31 -0800
- Subject: Re: expect and tclsh give different output from "clock scan"
- References: <20041222172002.76779.qmail@web53610.mail.yahoo.com>
On Wed, 2004-12-22 at 09:20, Brad Gutt wrote:
> So, why is the output of clock scan different between
> expect and tclsh? Isn't expect using the same code as
> tclsh is using?
No, as a matter of fact, they are not using the same code. Expect on
cygwin is a "unix" application, i.e., it uses cygwin's posix layer to
call time() (from tclUnixTime.c):
expect1.1> set ::tcl_platform(platform)
unix
tclsh84> set ::tcl_platform(platform)
windows
On windows, it uses some goofy windowsy thing in tclWinTime.c to get the
time.
My guess is that cygwin/unix code and the windows code use different
epochs.
Keith