Artifacts Associated With Ticket 304d30677a
Ticket change [fd15760bc6] (rid 230318) by apnadkarni on 2024-08-18 17:15:07:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-markdown"
- comment initialized to:
``` % encoding convertfrom cesu-8 [encoding convertto cesu-8 \U1f600] unexpected byte sequence starting at index 0: '\xED' ```
- foundin initialized to: "9.0b3"
- is_private initialized to: "0"
- login: "apnadkarni"
- priority initialized to: "5 Medium"
- private_contact initialized to: "9546e9877f1a8899e25a89082561ee694e7fb402"
- resolution initialized to: "None"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "apnadkarni"
- subsystem initialized to: "- New Builtin Commands"
- title initialized to: "CESU-8 decoding broken for non-BMP characters"
- type initialized to: "Bug"
Ticket change [5ccc8cf4fc] (rid 230328) by apnadkarni on 2024-08-18 17:38:50:
- icomment:
Proposed fix in [196cc3a439]. Still incomplete though passes current test suite. Needs a thorough review for correctness and possible simplification. But see the comments in the commit message.
- login: "apnadkarni"
- mimetype: "text/x-fossil-plain"
- icomment:
Ticket change [958a994b3d] (rid 230376) by juliannoble2 on 2024-08-19 18:19:31:
- icomment:
If this perhaps won't make it into Tcl 9 anyway - is there any consideration for handling the Java style cesu-8 which translates nul-bytes as 0xC0,0x80 ? Would this need to be a different encoding name such as cesu-8j or mutf-8? I'm not hassling for it - just wondering if this impacts the decision on whether to refactor parts of it as you mentioned.
- login: "juliannoble2"
- mimetype: "text/plain"
- icomment:
Ticket change [72ec69122d] (rid 230380) by jan.nijtmans on 2024-08-19 22:33:04:
- icomment:
Thanks, Ashok, for taking this. I don't mind very much what exactly the CESU-8 encoding is doing. What does the CESU-8 encoding in ICU do with null-bytes? A separate mutf-8 encoding is a possibility, is it worth the effort?
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [c0dfae537f] (rid 230430) by apnadkarni on 2024-08-20 12:01:10:
- icomment:
Given any consideration of modified utf8 (Java style) should not be considered for 9.0, the only immediate question to be answered is, whether the cesu-8 fix should be applied to trunk for inclusion into 9.0. I see two alternatives: 1. Include the fix as surrogates are the whole reason for cesu-8 existence and without the fix, there is no point including cesu-8. 2. Conversely, since cesu-8 is pointless without the fix, remove cesu-8 entirely from the code. From a code point of view, 2. is more surgical, less intrusive. But it is loss of functionality (there must have been a reason for including it) and probably requires a TIP. Jan, a lot depends on whether you have time to review the fix and are comfortable with the changes.
- login: "apnadkarni"
- mimetype: "text/plain"
- icomment:
Ticket change [661cda849f] (rid 230452) by jan.nijtmans on 2024-08-20 13:12:28:
- icomment:
> Jan, a lot depends on whether you have time to review the fix and are comfortable with the changes. I agree with your approach, using the channel state to control the generation of two separate surrogates. So, just go ahead.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [c97c4779c1] (rid 230672) by apnadkarni on 2024-08-22 10:04:56:
- closedate changed to: "2460544.92009692"
- closer changed to: "apnadkarni"
- icomment: "Fixed in [96e96a1865]."
- login: "apnadkarni"
- mimetype: "text/x-fossil-plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"