Tcl Source Code

View Ticket
Login
Ticket UUID: 6390566ecd6d3bef132bcbe0511469a5a55f505d
Title: Testcase cmdAH-4.3.13.00DC0000.tail.utf-32.tcl8.a fails sometimes
Type: Bug Created on: 2023-03-17 14:41:14
Submitter: jan.nijtmans Assigned to: jan.nijtmans
Subsystem: 16. Commands A-H Severity: Important
Priority: 5 Medium Last modified: 2026-10-21 08:46:00
Status: Closed Closed by: nobody
Resolution: Fixed Closed on: 2023-03-17 16:13:09
Version: tip-656
Description:

See: https://github.com/tcltk/tcl/actions/runs/4445176974/jobs/7804063186

This testcase sometimes fails. Since I have a pretty good idea what's going on here (the same bug has already been fixed for the utf-16 decode, which was found by valgrind), let's fix this.

This is not a problem introduced in the TIP #656 implementation! core-8-branch has the same problem, it just doesn't have a testcase for it.

==== cmdAH-4.3.13.00DC0000.tail.utf-32.tcl8.a encoding convertfrom -profile tcl8 utf-32 AÜ FAILED
==== Contents of test case:
encoding convertfrom -profile tcl8 utf-32 AÜ
---- Result was:
A\u20AC\u20AC\u20AC
---- Result should have been (exact matching):
A\uDC00
==== cmdAH-4.3.13.00DC0000.tail.utf-32.tcl8.a FAILED

User Comments:
jan.nijtmans added on 2023-03-17 16:13:09:

Fixed [69a4b72885497f31|here]


jan.nijtmans added on 2023-04-04 06:40:15:

Re-opening: saw it happen on trunk again (TIP #656 is in trunk now)


serhiy.storchaka added on 2026-10-21 08:46:00:

Fixed by [b27eacb7fc] (in 9.0.0). The test passes repeatedly on main, and all utf-* convertfrom tests of cmdAH-4.3.13/14 are clean under valgrind. 8.6 has no utf-32 encoding with profiles and is not affected. Closing.