Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c7124dc730743f6dec306deb082e86c4b4f50137
Ticket: 1306162fffffffffffffffffffffffffffffffff
some args turned into garbages on cp932
User & Date: nobody on 2005-09-27 19:25:40
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    ActiveTcl8.4.11/Windows2000 SP4
    Japanese(system encoding is cp932)
    
    test.tcl
    puts $args
    
    and on command line
    >tclsh test.tcl 江戸
    
    then I got 構]戸([lindex $args 0] was 構]戸).
    
    江戸 is 0x8D 0x5D 0x8C 0xCB.
    構]戸 is 0x8D 0x5C 0x5D 0x8C 0xCB.
    
    cp932/shiftjis encoding has 0x5B, 0x5D, 0x7B, 0x7D
    ("[", "]", "{" and "}")in a 2byte character. so it
    looks for me that we should encode args to utf-8 one by
    one first, and then create args list in Tcl_Main.
    
    thanks
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "08. Environment Variables"
  10. title changed to: "some args turned into garbages on cp932"
  11. type changed to: "Bug"