Skip to content
Tcl Source Code History Of Ticket 505694ffffffffff
Login

History Of Ticket 505694ffffffffff

Artifacts Associated With Ticket 505694ffffffffff

  1. Ticket change [2f5933c3cd] (rid 93049) by nobody on 2002-01-19 07:43:33:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      I want to change a Chinese character, which unicode 
      value is \u4e2d, to hex.the following is my commands.
      
      set a \u4e2d
      binary scan $a H* b
      
      after I run the two commands, the value of variable b 
      is 2d, not 4e2d. who can tell me why? thanks
      
      my email : [email protected]
      
    4. foundin initialized to: "obsolete: 8.3.4"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "16. Commands A-H"
    10. title initialized to: "binay scan can't work correctly"
    11. type initialized to: "Bug"
  2. Ticket change [38f2159ae6] (rid 112303) by hobbs on 2002-01-20 09:10:37:

    1. closedate changed to: "2002-01-20T02:10:37"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      You want "format %x [scan \u4e2d %c]", as is:
      
      (hobbs) 60 % format %x [scan \u4e2d %c]
      4e2d
      
      \u4e2d is not binary, it's just a utf-8 string, so use the 
      regular scan.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. username: "hobbs"
  3. Ticket change [5567d5a4f9] (rid 94126) by dkf on 2002-01-21 16:44:11:

    1. closedate changed to: "2002-01-21T09:44:11"
    2. closer changed to: "dkf"
    3. icomment:
      Logged In: YES 
      user_id=79902
      
      A better solution is:
        binary scan [encoding convertto unicode $a] H* b
      (because that is better at dealing with characters with the
      highest bit set.)
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. username: "dkf"