Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b80bb952ac62ef11c31ad89f948d73c1387a8c789c69e766dcb7740b2774fad5
Ticket: 5e6ae6e05ef86f233316cb0294a683afd3306a70
Implement -strict correctly for cesu-8
User & Date: jan.nijtmans on 2023-02-16 11:11:25
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. 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>
    
  5. foundin changed to: "8.7"
  6. is_private changed to: "0"
  7. login: "jan.nijtmans"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "0c50e5320704d174412e57b873d8932de15303e0"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "jan.nijtmans"
  14. subsystem changed to: "11. Conversions from String"
  15. title changed to: "Implement -strict correctly for cesu-8"
  16. type changed to: "Bug"