Artifacts Associated With Ticket f887005c8eb4dae8
Ticket change [47e0c559ec] (rid 241896) by apnadkarni on 2025-06-24 11:00:01:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-markdown"
- comment initialized to:
Continuing to exhaustively test Tcl encoders with ICU results, table based encoders seem broken for some values. ``` % 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.
- is_private initialized to: "0"
- login: "apnadkarni"
- priority initialized to: "5 Medium"
- private_contact initialized to: "9546e9877f1a8899e25a89082561ee694e7fb402"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "apnadkarni"
- subsystem initialized to: "- New Builtin Commands"
- title initialized to:
Table-driven encoders broken (for some cases) for -profile tcl8
- type initialized to: "Bug"
Ticket change [02c2be2705] (rid 241897) by apnadkarni on 2025-06-24 11:00:27:
- comment changed to:
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.
- login: "apnadkarni"
- mimetype: "text/plain"
- comment changed to:
Ticket change [eb5ed74de5] (rid 241898) by apnadkarni on 2025-06-24 11:48:22:
- icomment:
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.
- login: "apnadkarni"
- mimetype: "text/plain"
- icomment:
Ticket change [ef5a2d22a5] (rid 241899) by jan.nijtmans on 2025-06-24 12:39:13:
- icomment:
> 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 ....
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [c8f51fc85b] (rid 241922) by apnadkarni on 2025-06-24 16:06:05:
- closedate changed to: "2460851.17089765"
- closer changed to: "apnadkarni"
- login: "apnadkarni"
- mimetype: "text/plain"
- resolution changed to: "Rejected"
- status changed to: "Closed"