Artifacts Associated With Ticket 5e6346a252
Ticket change [dabcf9db98] (rid 181721) by dgp on 2020-04-15 17:04:48:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Since Tcl started rejecting overlong UTF-8 sequences [67aa9a2070], Tcl_UtfPrev is out of sync with the new rules for what Tcl accepts. test utf-7.26 {Tcl_UtfPrev -- overlong sequence} testutfprev { testutfprev A\xE0\x80\x80 } 3 This fails, returning the wrong value 1 instead. - foundin initialized to: "8.6.7+"
- is_private initialized to: "0"
- login: "dgp"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "44. UTF-8 Strings"
- title initialized to:
Tcl_UtfPrev does not account for rejecting overlong sequences
- type initialized to: "Bug"
Ticket change [3980a36232] (rid 181729) by jan.nijtmans on 2020-04-15 19:06:24:
- icomment:
I'm guilty as charged .... :-). This behavior is backported from 8.7, and - since this handles an invalid byte sequence - it can only be triggered by carefully crafted native code, not from a pure Tcl script. That said, Tcl_UtfPrev() and Tcl_UtfNext() don't behave well in all situations, mainly when invalid byte-sequences are involved. You are showing that with a lot of test-cases. That's great, and something I appreciate you are doing. Does the [bug-31aa44375d] branch solve this for you? I think not for 100%, because some of the fixes you did in a branch derived from 8.5 are not ported forward yet. Since Tcl 8.6.7 is 2 1/2 years old, and no-one filed a bug-report on this, I don't understand your "Important", but so be it. If you are satisfied with the [bug-31aa44375d] branch, then feel free to merge it to core-8-6-branch. I won't resist. Since I didn't file a TIP for 8.6, I don't have enough ground below me to stand on.
- login: "jan.nijtmans"
- mimetype: "text/plain"
- icomment:
Ticket change [5bb9c2008a] (rid 181768) by dgp on 2020-04-15 22:18:14:
- icomment:
Given the choices of the selector "Important" is the middle ground. I don't want to pick "Cosmetic" or "Minor". It's a real bug to be fixed. I don't want to sound the alarms of "Critical" or "Severe". It's not either of those. An option of "Normal" would be about right.
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [98d9ba05e2] (rid 181769) by dgp on 2020-04-15 22:20:03:
- icomment:
I am still working my way forward to decide what's best to do on the 8.6 branch. Having these test mark what changed and when and why helps me organize and demonstrate my thoughts. I appreciate the assists in merging.
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [803e04b717] (rid 181824) by dgp on 2020-04-16 17:41:37:
- assignee changed to: "dgp"
- closedate changed to: "2458956.23724295"
- closer changed to: "dgp"
- icomment:
Fixed in 8.5.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [fc43f76107] (rid 181849) by jan.nijtmans on 2020-04-16 19:33:41:
- closedate changed to: "2458956.31506684"
- closer changed to: "jan.nijtmans"
- icomment:
Strange .... This ticket says: Version: 8.6.7+, how can it be fixed in 8.5 ???? So, actually it was a much more ancient present problem.... :-) There's a lot of confusion about how Tcl_UtfPrev/Tcl_UtfNext should be have. For valid UTF-8 sequences, it's clear what should be done. For invalid UTF-8 sequences: who cares, since they only can be inserted using (mal-behaving) extensions or the 'identity' encoding. I see no problem merging this forward.
- login: "jan.nijtmans"
- mimetype: "text/plain"