|
2025-06-24
| ||
| 16:06 | • Closed ticket [f887005c8e]: Table-driven encoders broken (for some cases) for -p... artifact: c8f51fc85b user: apnadkarni | |
| 12:39 | • Ticket [f887005c8e]: 3 changes artifact: ef5a2d22a5 user: jan.nijtmans | |
| 11:48 | • Ticket [f887005c8e]: 3 changes artifact: eb5ed74de5 user: apnadkarni | |
| 11:00 | • Ticket [f887005c8e]: 3 changes artifact: 02c2be2705 user: apnadkarni | |
| 11:00 | • New ticket [f887005c8e]. artifact: 47e0c559ec user: apnadkarni | |
Table-driven encoders broken (for some cases) for -profile tcl8
Closed / Rejectedf887005c8eb4dae8184e4b3b6ae1f3b86727196eCreated 1 year agoUpdated 1 year ago
Descriptionmarkdown2025-06-24 11:00:01
Continuing to exhaustively test Tcl encoders with ICU results, table based encoders seem broken for some values. One example:
% scan [encoding convertfrom -profile tcl8 cp864 \x9C] %c
339
which not only does not match ICU but is essentially garbage. Tcl 8 returns correct value.
apnadkarni Ticket [f887005c8e]: 3 changes
[History diff]2025-06-24 11:00:27
apnadkarniplain2025-06-24 11:48:22
Looks like it's by design. It appears it maps those code points undefined in the encoding to cp1252, not the numerical value. I thought that was supposed to only happen with ASCII and (invalid) UTF-8 input but looks like it is true for other encodings as well. It makes `-profile tcl8` not really Tcl 8 compatible and not what was specified in TIP 656 which required mapping to iso8859-1, not cp1252. I suppose this is in some other TIP somewhere. In any case, tcl8 profile usage is really strongly deprecated imo so I am not going to bother with this. Will close after confirmation of the above.
jan.nijtmanswiki2025-06-24 12:39:13
> Will close after confirmation of the above.
Agreed, this is intentional. Tcl 8.7 does it the same way, so "-profile tcl8" is compatible with 8.7, not with 8.6. But since 8.7 won't be released ....
apnadkarni Closed ticket [f887005c8e].
[History diff]2025-06-24 16:06:05
Log in (anonymous is fine) to add a comment.