Overview
| Artifact ID: | 2cf8915df4ef6673218a26d3ce0b76a758e30948 |
|---|---|
| Ticket: | 800753ffffffffffffffffffffffffffffffffff
-eofchar accepts only single-byte character? |
| User & Date: | dgp on 2003-09-04 22:43:40 |
Changes
- assignee changed to: "andreas_kupries"
- cmimetype changed to: "text/plain"
- comment changed to:
When configuring a channel's EOF character with [fconfigure -eofchar], the character gets stored in the inEofChar field of the ChannelState struct . This field is of type int, so it is large enough to hold any Tcl_UniChar value. However, in the TranslateInputEOL() routine in tclIO.c, the value in the inEofChar field is compared against the buffer coming in from the channel byte by byte. This means only character values in the range 0-255 can be used as EOF characters? If this is intended, or too difficult to fix, then the docs could use clarification. Otherwise, since it appears that EOF character detection comes after translation to UTF-8 encoding, it seems that -eofchar could be corrected to let any Unicode character serve as the EOF marker.
- foundin changed to: "obsolete: 8.5a0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "25. Channel System"
- title changed to: "-eofchar accepts only single-byte character?"
- type changed to: "Bug"