Overview
| Artifact ID: | b80bb952ac62ef11c31ad89f948d73c1387a8c789c69e766dcb7740b2774fad5 |
|---|---|
| Ticket: | 5e6ae6e05ef86f233316cb0294a683afd3306a70
Implement -strict correctly for cesu-8 |
| User & Date: | jan.nijtmans on 2023-02-16 11:11:25 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
The cesu-8 encoding is slightly different from utf-8, which has a subtile effect on "-strict" Examples: <pre> % encoding convertfrom -strict cesu-8 \xC0\x80 % encoding convertfrom -strict cesu-8 \xF1\x86\x83\x9C </pre> 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: <pre> % 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' </pre> - foundin changed to: "8.7"
- is_private changed to: "0"
- login: "jan.nijtmans"
- priority changed to: "5 Medium"
- private_contact changed to: "0c50e5320704d174412e57b873d8932de15303e0"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "jan.nijtmans"
- subsystem changed to: "11. Conversions from String"
- title changed to: "Implement -strict correctly for cesu-8"
- type changed to: "Bug"