Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2023-03-22
17:09
Merge trunk 286d6e9ab0: Fix [db7a085bd9]: encoding convertfrom -strict utf-16 accepts partial surrog... check-in: afb470b29e user: pooryorick tags: unchained
2023-03-14
10:17 • Closed ticket [db7a085bd9]: encoding convertfrom -strict utf-16 accepts partial ... artifact: bcd95ac5e3 user: jan.nijtmans
2023-03-12
12:37
Fix [db7a085bd9]: encoding convertfrom -strict utf-16 accepts partial surrogates check-in: 8a26d5cf2b user: jan.nijtmans tags: core-8-branch
2023-03-11
22:02 • Pending ticket [db7a085bd9]: encoding convertfrom -strict utf-16 accepts partial... artifact: 3e38a39594 user: jan.nijtmans
22:00
Proposed fix for [db7a085bd9]: encoding convertfrom -strict utf-16 accepts partial surrogates. TODO:... closed check-in: 3840dcf4c9 user: jan.nijtmans tags: bug-db7a085bd9
2023-02-23
11:09 • Ticket [db7a085bd9] encoding convertfrom -strict utf-16 accepts partial surrogat... artifact: 84ecda349f user: jan.nijtmans
2023-02-20
13:07 • New ticket [db7a085bd9]. artifact: efa1dde610 user: apnadkarni

encoding convertfrom -strict utf-16 accepts partial surrogates

Closed / Fixeddb7a085bd95a1169ece64db4a9b7af506e323b21Created 4 years agoUpdated 4 years ago
Descriptionmarkdown2023-02-20 13:07:08
% codepoints [encoding convertfrom -strict utf-16le \x00\xd8]
U+00D800
% codepoints [encoding convertfrom -strict utf-16le \x00\xdc]
U+00DC00
% codepoints [encoding convertfrom -strict utf-16be \xd8\x00]
U+00D800

I don't think this is conformant behavior and should raise an error.

/Ashok

Referenced by3
  • afb470b29eMerge trunk 286d6e9ab0: Fix [db7a085bd9]: encoding convertfrom -strict utf-16 accepts partial surrogates. check-in2023-03-22 17:09:51
  • 8a26d5cf2bFix [db7a085bd9]: encoding convertfrom -strict utf-16 accepts partial surrogates check-in2023-03-12 12:37:29
  • 3840dcf4c9Proposed fix for [db7a085bd9]: encoding convertfrom -strict utf-16 accepts partial surrogates. TODO: testcases, and implement for 8.7 too check-in2023-03-11 22:00:29
jan.nijtmanswiki2023-02-23 11:09:33

This is - indeed - non-conformat behavior

jan.nijtmanswiki2023-03-11 22:02:39

Proposed fix [here] for 9.0. TODO: add more testcases.

Also missing is the implementation for 8.7, which is slightly more difficult because Tcl8.7 doesn't have the TCL_COMBINE flag.

jan.nijtmanswiki2023-03-14 10:17:53

Fixed [here]

Log in (anonymous is fine) to add a comment.