Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 73dfd935df99cb3cea67f085c2cad403bcd766b3720e0424b06fe10f9b830092
Ticket: bd1a60eb9c080fc419473d7fadc6048d5753daa8
convertfrom utf-8 strict mode allows surrogates in input sequence
User & Date: apnadkarni on 2023-02-11 16:23:52
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    I think the following is a bug as conformant utf-8 streams are explicitly not permitted to have encoded surrogates.
    
    ```
    % proc codepoints {s} {join [lmap c [split $s ""] {
        string cat U+ [format %.6X [scan $c %c]]}]
    }
    % codepoints [encoding convertfrom -strict utf-8 \xed\xa0\x80\xed\xb0\x80]
    U+010000
    ```
    
    Above should generate an exception.
    
    Looking at fixing (in apn-encoding-profile branch for now, but above sample is from core-8-branch).
    
  5. foundin changed to: "8.7"
  6. is_private changed to: "0"
  7. login: "apnadkarni"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Important"
  11. status changed to: "Open"
  12. submitter changed to: "apnadkarni"
  13. subsystem changed to: "16. Commands A-H"
  14. title changed to:
    convertfrom utf-8 strict mode allows surrogates in input sequence
    
  15. type changed to: "Bug"