Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b29857c701f076f2ca36cccd395c63db1d1dabfeeb84a7c07f9ac9ad76b3d0a4
Ticket: 821620d417f604c40619b610348af78d4c32b855
Different handling of surrogates in utf-8 between Tcl8 and Tcl9
User & Date: apnadkarni on 2023-02-25 04:56:26
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    In Tcl 8.7,
    
    ```
    % package require Tcl
    8.7a6
    % codepoints [encoding convertfrom utf-8 [binary decode hex EDAFBFEDBFBF]]
    U+10FFFF
    ```
    
    In Tcl 9,
    
    ```
    % package require Tcl
    9.0a4
    % codepoints [encoding convertfrom utf-8 [binary decode hex EDAFBFEDBFBF]]
    U+00DBFF U+00DFFF
    ```
    
    Surrogate pairs are not allowed in strict utf-8 but the above is not strict. In my opinion, the Tcl 8.7 behavior is preferable but since this is non-conformant anyways, either behavior might be ok. But they should be consistent between Tcl 8 and 9.
    
  5. foundin changed to: "8.7"
  6. is_private changed to: "0"
  7. login: "apnadkarni"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "apnadkarni"
  14. subsystem changed to: "- New Builtin Commands"
  15. title changed to:
    Different handling of surrogates in utf-8 between Tcl8 and Tcl9
    
  16. type changed to: "Bug"