Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 74030b176187b31bfa675c2f2b7bcc9137003736d4e889e83f488e8965a50b97
Ticket: 10c2c17c32ab68e6619f37994b09bbbd06462cd1
UTF-LE32 encoder mapping of surrogates
User & Date: apnadkarni on 2023-02-06 17:01:49
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    While beefing up test cases for encoders, the following seems suspect to me.
    
    ```
    % proc codepoints {s} {join [lmap c [split $s ""] {
        string cat U+ [format %.8X [scan $c %c]]}]
    }
    % codepoints [encoding convertfrom utf-32le \x41\x00\x00\x00\x00\xD8\x00\x00\x42\x00\x00\x00]
    U+00000041 U+000000F0 U+00000042
    ```
    
    Where does the U+000000F0 come from? It seems strange that 0x0000D800 gets mapped to that value. Am I missing something?
    
    Tcl9 seems fine (maps to U+D800)
    
  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: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "apnadkarni"
  13. subsystem changed to: "16. Commands A-H"
  14. title changed to: "UTF-LE32 encoder mapping of surrogates"
  15. type changed to: "Bug"