Skip to content
Tcl Source Code History Of Ticket 1363452
Login

History Of Ticket 1363452

Artifacts Associated With Ticket 1363452

  1. Ticket change [ba3b33f06f] (rid 129290) by nyademo on 2005-11-22 06:15:58:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Windows2000/ActiveTcl8.4.11
      
      test
      =========================================
      set b1 \u3042\u3044
      set b2 [encoding convertto unicode $b1]
      
      binary scan $b1 H* result1;# 4244
      binary scan $b2 H* result2;# 42304430
      if {$result1 ne $result2} {error error}
      
      
      maybe is result2 value right?
      It seems to me that each second bytes was lost.
      
    4. foundin initialized to: "obsolete: 8.4.11"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nyademo"
    9. subsystem initialized to: "12. ByteArray Object"
    10. title initialized to: "binary scan unicode error"
    11. type initialized to: "Bug"
  2. Ticket change [4293adcd5a] (rid 116408) by dkf on 2005-11-29 20:15:15:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      That's exactly the way it is defined to work, using just the
      low byte from each character. The [encoding convertto] just
      transforms the characters into a sequence of bytes (with
      each resulting byte encoded in a single character in the
      range \u0000-\u00ff) which are then handled in the way you
      describe.
      
      The key point is that Tcl is using a different
      interpretation of bytes and (especially) characters to what
      you expected.
      
      Keeping bug open while I consider if a documentation update
      is needed.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. resolution changed to: "Invalid"
    5. username: "dkf"
  3. Ticket change [05719ca29d] (rid 89067) by dkf on 2005-12-16 18:10:38:

    1. closedate changed to: "2005-12-16T11:10:38"
    2. closer changed to: "dkf"
    3. status changed to: "Closed"