Artifacts Associated With Ticket 656765ffffffffff
Ticket change [8d0eaacf35] (rid 127857) by pascalscheffers on 2002-12-20 12:27:46:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
in generic/tclClock.c:formatClock there are two assignments to timezone (from time.h), but because cygwin defines timezone: #define timezone ((long int) _timezone) gcc does not accept it as an correct lvalue for: tclClock.c: 310 timezone = 0; (this is in a '#ifdef kludge for timezone not in struct TM_ZONE required' block) my patch fixes it so it compiles again by directly using _timezone #if defined(__CYGWIN__). - foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "pascalscheffers"
- subsystem initialized to: "16. Commands A-H"
- title initialized to: "formatClock/cygwin compile fix"
- type initialized to: "Patch"
Ticket change [aaba75ba9f] (rid 100975) by pascalscheffers on 2002-12-20 19:37:25:
- icomment:
File Added - 38005: clock-cygwin-8.4.1.patch
- login: "pascalscheffers"
- mimetype: "text/plain"
- username: "pascalscheffers"
- icomment:
Add attachment "clock-cygwin-8.4.1.patch" [6d81bd10cb] (rid 128711) by pascalscheffers on 2002-12-20 19:37:25.
Ticket change [83e4ae4802] (rid 117452) by dkf on 2002-12-20 19:48:58:
- assignee changed to: "kennykb"
- subsystem changed to: "06. Time Measurement"
Ticket change [4b067c72e7] (rid 126626) by chomo on 2004-02-02 02:49:17:
- icomment:
Logged In: YES user_id=943591 not do harm
- login: "chomo"
- mimetype: "text/plain"
- username: "chomo"
- icomment:
Ticket change [f79cdc4cf4] (rid 91405) by winstan on 2004-02-13 02:30:00:
- icomment:
Logged In: YES user_id=972673 This patch breaks what the #ifdef kludge is trying to do: Save timezone and restore it later. If the first #if !defined(__CYGWIN__) is moved up one line to include savedTimeZone = timezone; then it'll still work. I'll try to attach a patch for 8.4.5
- login: "winstan"
- mimetype: "text/plain"
- username: "winstan"
- icomment:
Ticket change [b7c49c24b2] (rid 128853) by winstan on 2004-02-13 02:37:32:
- icomment:
Logged In: YES user_id=972673 --- tcl8.4.5/generic/tclClock.c2003-02-01 +++ tcl8.4.5-fix/generic/tclClock.c2004-02-12 @@ -311,8 +311,13 @@ savedTZEnv = NULL; } Tcl_SetVar2(interp, "env", "TZ", "GMT", TCL_GLOBAL_ONLY); +#if !defined(__CYGWIN__) savedTimeZone = timezone; timezone = 0; +#else + savedTimeZone = _timezone; + _timezone = 0; +#endif tzset(); } #endif @@ -357,7 +362,11 @@ } else { Tcl_UnsetVar2(interp, "env", "TZ", TCL_GLOBAL_ONLY); } +#if !defined(__CYGWIN__) timezone = savedTimeZone; +#else + _timezone = savedTimeZone; +#endif tzset(); } Tcl_MutexUnlock( &clockMutex ); - login: "winstan"
- mimetype: "text/plain"
- username: "winstan"
- icomment:
Ticket change [0326c32209] (rid 119772) by kennykb on 2004-08-19 22:42:00:
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [4590cc8c97] (rid 99372) by kennykb on 2004-08-19 22:42:01:
- closedate changed to: "2004-08-19T15:42:01"
- closer changed to: "kennykb"
- icomment:
Logged In: YES user_id=99768 The relevant code in tclClock.c isn't even there in 8.5, so any changes needed to make it compile appear to be moot.
- login: "kennykb"
- mimetype: "text/plain"
- username: "kennykb"