Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b19c4663875236fdf0c0e96854326e2f5be912cc
Ticket: 523988ffffffffffffffffffffffffffffffffff
Decoding broken for iso-2022-jp
User & Date: hobbs on 2002-03-02 10:16:03
Changes

  1. assignee changed to: "hobbs"
  2. closedate changed to: "2002-03-02T03:16:03"
  3. closer changed to: "hobbs"
  4. icomment:
    
    
    File Added - 18689: 523988.patch
    
    Logged In: YES 
    user_id=72656
    
    I figured out the problem ... the ChannelState's 
    inputEncodingFlags was not getting the TCL_ENCODING_START 
    flag ever turned off.  'read' would do this, but 
    not 'gets'.  This meant that 'gets' would see the initial 
    escape and jump to jis0208 mode, but after reading in a 
    small buffer's worth of data (somewhat related to 
    ENCODING_LINESIZE), it reset to the default encoding in the 
    table again (iso8859-1).   Increasing the ENCODING_LINESIZE 
    parameter just extended the amount of data that fit in that 
    initial buffer.
    
    In the patch I actually lower the ENCODING_LINESIZE value 
    slightly, as it speeds up 'gets' somewhat.
    
    Commited to 8.3.4+ and 8.4a4cvs.  Added tests based on the 
    sample data to encoding.test
    
    
  5. login: "hobbs"
  6. mimetype: "text/plain"
  7. resolution changed to: "Fixed"
  8. status changed to: "Closed"
  9. username: "hobbs"