After some TIP 716 changes, some tests will fail if the system encoding is iso8859-1
Closed / Fixed45bfbebe466090b51fbeaca24e36c686cb54511bCreated 1 year agoUpdated 1 year ago
Descriptionplain2025-11-08 02:41:35
Test failures on 8.6.17: cmdAH-16.2, cmdAH-16.3, cmdAH-17.2, cmdAH-17.3, and cmdAH-18.3: "no such file or directory". Tests fail if the system encoding is iso8859-1, and will pass if the system encoding is utf-8. This has to do with the creation of "gorpfile". If the system encoding is iso8859-1, then the filename on disk will have one byte from the \xF3, but the testchmod command seems to try to find a file with two bytes, probably utf-8 encoded. The changes are in this checkin: [87abac372cb137f7] (search for "gorp") Also contrast with this checkin: [b97afc09938eaa6d] Related to the change to testchmod in tclUnixTest.c: [8db993fea906a78e]
stu Ticket [45bfbebe46]: 3 changes
[History diff]2025-11-08 02:42:10
apnadkarniplain2025-11-08 03:27:56
TIP 716 targets 9.0.2 so should not have affected 8.6 at all. Will check to see how that could happen...
jan.nijtmanswiki2025-11-08 08:50:21
The problem is in TestchmodCmd() (tclUnixTest.c). It should translate the filename from UTF-8 to native, just as the Windows version does.
This has always been wrong, but because the testcase used ASCII in the past, no-one noticed.
jan.nijtmanswiki2025-11-08 23:17:29
Thanks! Fixed[here]
It turns out, the problem was already corrected in Tcl 9.0, so backported now.
Log in (anonymous is fine) to add a comment.