Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2cf8915df4ef6673218a26d3ce0b76a758e30948
Ticket: 800753ffffffffffffffffffffffffffffffffff
-eofchar accepts only single-byte character?
User & Date: dgp on 2003-09-04 22:43:40
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
  4. foundin changed to: "obsolete: 8.5a0"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "25. Channel System"
  10. title changed to: "-eofchar accepts only single-byte character?"
  11. type changed to: "Bug"