Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2024-08-22
13:44
Merge [862eaba11a22af37], "Fix testcase for [00655c867e] (making it independent from timezone)", "Fi... check-in: 67b8c1207f user: pooryorick tags: unchained, INCOMPATIBLE_LICENSE
2024-02-16
10:38 • Ticket [e368ba6683] ThreadSafeLocalTime(): check if localtime_r() encountered er... artifact: 32217abc79 user: chrstphrchvz
2024-02-07
17:37 • Ticket [e368ba6683]: 5 changes artifact: c943a26389 user: oehhar
17:36 • Closed ticket [e368ba6683]. artifact: 2838d4e03b user: oehhar
2023-09-21
11:04
Fix [e368ba6683]: ThreadSafeLocalTime(): check if localtime_r() encountered error check-in: c94812e9a9 user: jan.nijtmans tags: core-8-6-branch
00:16 • Ticket [e368ba6683] ThreadSafeLocalTime(): check if localtime_r() encountered er... artifact: e1ab185e15 user: chrstphrchvz
00:13 • Add attachment localtime-tests.diff to ticket [e368ba6683926255|e368ba6... artifact: 95092dd3c7 user: chrstphrchvz
2023-09-20
22:41 • Add attachment e368ba668392.diff to ticket [e368ba6683926255|e368ba6683... artifact: 36e2c4f70a user: chrstphrchvz
22:37 • Ticket [e368ba6683] ThreadSafeLocalTime(): check if localtime_r() encountered er... artifact: eab774a8d3 user: chrstphrchvz
22:37 • New ticket [e368ba6683]. artifact: 7cd99042f8 user: chrstphrchvz

ThreadSafeLocalTime(): check if localtime_r() encountered error

Closed / Fixede368ba6683926255f5f109c478e91c63fbce32f9Created 3 years agoUpdated 3 years ago
Descriptionwiki2023-09-20 22:37:25
In response to bug [1237907], ThreadSafeLocalTime() checks whether localtime() encountered an error (e.g. EOVERFLOW) by checking if the return value is NULL: [96beb107b193]. The same check is needed for localtime_r() as well. See attached patch.
Referenced by2
chrstphrchvz Ticket [e368ba6683]: 3 changes [History diff]2023-09-20 22:37:40
chrstphrchvzwiki2023-09-21 00:16:24

I would like to propose non-regression tests for this: see localtime-tests.diff. However I have not completely verified their portability, and maybe their formatting can be improved.

oehharwiki2024-02-07 17:36:36

As the patch was merged, it might be closed, no?

oehharwiki2024-02-07 17:37:21

Merged by commit [c94812e9a9]

chrstphrchvzwiki2024-02-16 10:38:42

If there is no interest in having non-regression tests for this (similar to those in the other attached patch) then I will not reopen this.

Log in (anonymous is fine) to add a comment.

Attachments: