|
2023-09-20
| ||
| 22:37 | • New ticket [e368ba6683] ThreadSafeLocalTime(): check if <tt>localtime_r()&... artifact: 7cd99042f8 user: chrstphrchvz | |
| 22:16 | • New ticket [47902ec47a] ThreadSafeLocalTime(): remove redundant localtime() call... artifact: 847c28c20c user: chrstphrchvz | |
|
2005-07-16
| ||
| 05:33 | • Closed ticket [1237907fff]: Windows crash in clock plus 7 other changes artifact: cf2a60f991 user: kennykb | |
|
2005-07-14
| ||
| 07:47 | • Add attachment clock.patch to ticket [1237907fff] artifact: 407d0694a5 user: patthoyts | |
| 07:47 | • Ticket [1237907fff] Windows crash in clock status still Open with 4 other ch... artifact: bbb102646e user: patthoyts | |
| 00:24 | • New ticket [1237907fff]. artifact: 9c39c27b7b user: patthoyts | |
Windows crash in clock
Closed / Fixed1237907fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 21 years ago
Descriptionplain2005-07-14 00:24:40
[tcl::clock::Localtime -1] will crash tcl on Windows. The error seems to be in ThreadSafeLocalTime() as far as I can see. Systems with HAVE_LOCALTIME_R seem to be fine. Solaris 10 and Linux do not crash.
patthoytsplain2005-07-14 07:47:17
File Added - 141994: clock.patch Logged In: YES user_id=202636 Windows localtime() can return NULL if the provided time is < unix epoch. (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_CRT_localtime.asp) Attached one possible patch. We noticed that Solaris returns times in 1970 for -1 and -2 but seems to count downwards. Linux uses 1969.
kennykbplain2005-07-16 05:33:22
Logged In: YES user_id=99768 Right you are. Also, we shouldn't have been in 'localtime' even in that case; Windows has provided us with tz conversion information, but we discarded it in favor of a tzdata file - that we subsequently discovered was missing. My changes fix that too.
Log in (anonymous is fine) to add a comment.
Attachments:
- clock.patch [download] added by patthoyts on 2005-07-14 07:47:17. [details]