Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d2150c3db4a02d8d3c58e730feaf06be46ab6112
Ticket: 218468ffffffffffffffffffffffffffffffffff
problem with chinese text
User & Date: nobody on 2000-10-26 01:00:50
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 632 Bug
    Version: 8.1a2
    SubmitDate: '1998-05-25'
    LastModified: '1999-08-06'
    Severity: MED
    Status: Released
    Submitter: hershey
    ChangedBy: hobbs
    OS: All
    OSVersion: NA
    Machine: NA
    FixedDate: '1999-08-06'
    FixedInVersion: 8.1
    ClosedDate: '2000-10-25'
    
    
    the problem is the encoding table. TCL 8.1 includes the ability to read
    a variety of input encodings, doing an on-the-fly conversion. for 
    chinese text, gb2312 [simplified] and big5 [traditional] are the two I
    know of and have to work with.
    
    but neither works straight out of the box. Big 5 is repairable. GB is
    just plain bad.
    
    tcl8.1 and my app will load a Big5 doc and display it just fine, but 
    won't save. I believe the problem is that the C code doesn't know to
    look in the ASCII encoding table to ASCII chars even though I said 
    the encoding to use was big5. so I copied the ascii table into the big5
    encoding file. worked great!
    
    tried the same thing with the gb2312 encoding file, but that was no
    improvement, just differently bad. fortunately, there's a 7.6/4.2 
    version of TCL which does gb2312 just fine.
    
    
    -- 
    
    Clint Hyde              "Give me a LispM or give me death!" -- anonymous
    
    
    Contact the I18N mailing list for better big5 encoding file.
    
    stanton 4/13/99:
    It turns out that gb2312.enc is correctly defined, but most people are actually using the "EUC-CN" encoding (a variant of gb2312 that includes ascii and adds 0x8080 to all gb2312 characters).  I have added an euc-cn.enc encoding file.  We may need to do further work on Tk if it turns out that fonts that claim to be gb2312 are actually euc-cn.
    
    Since Stanton's (4/99) changes, there have been no further comments for
    these encodings, so it was elevated to fixed. 
    -- 08/06/1999 hobbs
    
    
    
  4. foundin changed to: "obsolete: 8.1a2"
  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: "57. zlib"
  10. title changed to: "problem with chinese text"
  11. type changed to: "Bug"