Overview
| Artifact ID: | b19c4663875236fdf0c0e96854326e2f5be912cc |
|---|---|
| Ticket: | 523988ffffffffffffffffffffffffffffffffff
Decoding broken for iso-2022-jp |
| User & Date: | hobbs on 2002-03-02 10:16:03 |
Changes
- assignee changed to: "hobbs"
- closedate changed to: "2002-03-02T03:16:03"
- closer changed to: "hobbs"
- 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
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "hobbs"