|
2023-02-16
| ||
| 21:32 | • Closed ticket [5e6ae6e05e]: Implement -strict correctly for cesu-8 plus 7 ot... artifact: 5a10daf106 user: jan.nijtmans | |
| 21:03 | Fix [5e6ae6e05e]: Implement -strict correctly for cesu-8 check-in: 345299048d user: jan.nijtmans tags: core-8-branch | |
| 16:59 | Fix [5e6ae6e05e]: Implement -strict correctly for cesu-8 closed check-in: 28c65c306c user: jan.nijtmans tags: bug-5e6ae6e05e | |
| 11:11 | • New ticket [5e6ae6e05e] Implement -strict correctly for cesu-8. artifact: b80bb952ac user: jan.nijtmans | |
Implement -strict correctly for cesu-8
Closed / Fixed5e6ae6e05ef86f233316cb0294a683afd3306a70Created 4 years agoUpdated 4 years ago
Descriptionwiki2023-02-16 11:11:25
The cesu-8 encoding is slightly different from utf-8, which has a subtile effect on "-strict"
Examples:
% encoding convertfrom -strict cesu-8 \xC0\x80
% encoding convertfrom -strict cesu-8 \xF1\x86\x83\x9C
Those 2 examples are illegal in cesu-8. \xC0\x80 is not illegal in modified cesu-8 (See TCL_ENCODING_MODIFIED flag, but this flag is not accessable at script level). The second example is a code point > 0xFFFF, which should be encoded as 2 surrogates in cesu-8.
Expected:
% encoding convertfrom -strict cesu-8 \xC0\x80
unexpected byte sequence starting at index 0: '\xC0'
% encoding convertfrom -strict cesu-8 \xF1\x86\x83\x9C
unexpected byte sequence starting at index 0: '\xF1'
Referenced by2
345299048dFix [5e6ae6e05e]: Implement -strict correctly for cesu-8 check-in2023-02-16 21:03:4828c65c306cFix [5e6ae6e05e]: Implement -strict correctly for cesu-8 check-in2023-02-16 16:59:10
jan.nijtmanswiki2023-02-16 21:32:23
Fixed [here]. Closing.
Log in (anonymous is fine) to add a comment.