Skip to content
Tcl Source Code History Of Ticket c376607b22fc6e13
Login

History Of Ticket c376607b22fc6e13

Artifacts Associated With Ticket c376607b22fc6e13

  1. Ticket change [fca0e2affe] (rid 190632) by anonymous on 2021-01-04 14:22:12:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      Sorry to bother you again about the same problem.  The bug
      https://core.tcl-lang.org/tcl/tktview/6b1c6bb09c4fc75326b37f5c7dcdaa44c0a7b6a5
      also occurs with Tcl 8.6 (core-8-6-branch), when compiled
      with TCL_UTF_MAX==5.  (I had not been aware of this mode
      when I reported this bug for 8.7 before.)
      
      To recap, this test fails:
      
      >>>>>
      package require tcltest
      namespace import -force ::tcltest::*
      
      # hex s - Format the string S as a hex dump.
      proc hex {s} {
          lmap ch [split $s ""] {
              format "%02X" [scan $ch "%c"]
          }
      }
      
      #set catFaceCodepoint 0x1F639
      set catFaceUtf8 "\xF0\x9F\x98\xB9"
      set catFaceUtf16 "\x3D\xD8\x39\xDE"
      
      test encoding-bug-1 {encoding: extended Unicode UTF-16} {
          set tclstring [encoding convertfrom utf-8 $catFaceUtf8]
          set utf16 [encoding convertto unicode $tclstring]
          hex $utf16
      } [hex $catFaceUtf16]
      <<<<<
      
      This was fixed in november for 8.7 with
      https://core.tcl-lang.org/tcl/info/ea91d44454d0a29b
      
    5. foundin initialized to: "8.6.11"
    6. is_private initialized to: "0"
    7. login: "anonymous"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "11198a4027193b80a694e66a04403b2c879b1f6f"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "anonymous"
    14. subsystem initialized to: "44. UTF-8 Strings"
    15. title initialized to:
      Tcl 8.6: Extended plane character does not encode correctly to UTF-16 with TCL_UTF_MAX==5
      
    16. type initialized to: "Bug"
  2. Ticket change [28098d50cb] (rid 190647) by jan.nijtmans on 2021-01-04 15:12:29:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2459219.13367743"
    3. closer changed to: "jan.nijtmans"
    4. icomment:
      Fixed now in core-8-6-branch too.
      
      Thanks!
      
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
  3. Ticket change [aa3226e66f] (rid 190661) by anonymous on 2021-01-04 21:45:43:

    1. closedate changed to: "2459219.4067519"
    2. closer changed to: "anonymous"
    3. icomment: "This works, thanks you very much."
    4. login: "anonymous"
    5. mimetype: "text/plain"