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:518a26d5cf2bFix [db7a085bd9]: encoding convertfrom -strict utf-16 accepts partial surrogates check-in2023-03-12 12:37:293840dcf4c9Proposed 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.