Artifacts Associated With Ticket bd1a60eb9c
Ticket change [73dfd935df] (rid 208668) by apnadkarni on 2023-02-11 16:23:52:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-markdown"
- comment initialized to:
I think the following is a bug as conformant utf-8 streams are explicitly not permitted to have encoded surrogates. ``` % proc codepoints {s} {join [lmap c [split $s ""] { string cat U+ [format %.6X [scan $c %c]]}] } % codepoints [encoding convertfrom -strict utf-8 \xed\xa0\x80\xed\xb0\x80] U+010000 ``` Above should generate an exception. Looking at fixing (in apn-encoding-profile branch for now, but above sample is from core-8-branch). - foundin initialized to: "8.7"
- is_private initialized to: "0"
- login: "apnadkarni"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "apnadkarni"
- subsystem initialized to: "16. Commands A-H"
- title initialized to:
convertfrom utf-8 strict mode allows surrogates in input sequence
- type initialized to: "Bug"
Ticket change [cd44f8c912] (rid 208669) by apnadkarni on 2023-02-11 16:32:24:
- comment changed to:
I think the following is a bug as conformant utf-8 streams are explicitly not permitted to have encoded surrogates. ``` % proc codepoints {s} {join [lmap c [split $s ""] { string cat U+ [format %.6X [scan $c %c]]}] } % codepoints [encoding convertfrom -strict utf-8 \xed\xa0\x80\xed\xb0\x80] U+010000 ``` Above should generate an exception. Looking at fixing (in apn-encoding-profile branch for now, but above sample is from core-8-branch). Tcl9 behaves as expected. ``` % codepoints [encoding convertfrom -strict utf-8 \xed\xa0\x80\xed\xb0\x80] unexpected byte sequence starting at index 0: '\xED' ``` - login: "apnadkarni"
- mimetype: "text/plain"
- comment changed to:
Ticket change [6fad852ebb] (rid 208711) by jan.nijtmans on 2023-02-13 22:12:17:
- assignee changed to: "jan.nijtmans"
- login: "jan.nijtmans"
- mimetype: "text/plain"
Ticket change [7c442acde7] (rid 208758) by jan.nijtmans on 2023-02-15 07:32:15:
- closedate changed to: "2459990.81406387"
- closer changed to: "jan.nijtmans"
- icomment: "Fixed now in core-8-branch and trunk"
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [6d2ccba394] (rid 213016) by pooryorick on 2023-04-16 13:21:48:
- closedate changed to: "2460051.05680738"
- closer changed to: "pooryorick"
- icomment: "Jan's fix is in [84f30c5d4ee1a14a]."
- login: "pooryorick"
- mimetype: "text/x-fossil-wiki"