Skip to content
Tcl Source Code History Of Ticket 800753ffffffffff
Login

History Of Ticket 800753ffffffffff

Artifacts Associated With Ticket 800753ffffffffff

  1. Ticket change [2cf8915df4] (rid 119006) by dgp on 2003-09-04 22:43:40:

    1. assignee initialized to: "andreas_kupries"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "obsolete: 8.5a0"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "25. Channel System"
    10. title initialized to: "-eofchar accepts only single-byte character?"
    11. type initialized to: "Bug"
  2. Ticket change [1938779099] (rid 122778) by dgp on 2003-10-03 04:45:22:

    1. priority changed to: "8"
  3. Ticket change [0b6f31cc4a] (rid 113985) by andreas_kupries on 2004-07-17 05:55:03:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      This is not intended I believe. However changing it is a bit
      more complicated, due t the transition from byte-by-byte to
      char-by-char comparison ... And while the int can hold a
      UniChar, do we want it to ? Because if we do we also have a
      utf8-to-unichar conversion to perform for the characters in
      the buffer = Lower performance. So maybe store an utf8 char
      instead. The channelstate struct is internal and can be
      changed for this.
      
      So, no way for fixing this in the 8.4.7 timeframe, IMHO.
      However for 8.5 it should be possible to fix it.
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  4. Ticket change [d41e3e9659] (rid 123393) by dgp on 2004-11-22 06:35:40:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      any prospects for fixing this?
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [f7d664e041] (rid 91440) by dgp on 2006-11-23 03:20:26:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      Two years later...
      
      any prospects for fixing this?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [b0af8522d2] (rid 98029) by dgp on 2007-11-06 03:08:35:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      1823576 got fixed; how about this one?
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [90b67c8a39] (rid 120498) by andreas_kupries on 2007-11-06 03:17:56:

    1. icomment:
      Logged In: YES 
      user_id=75003
      Originator: NO
      
      I think only if you accept loss of perf, possibly. We would have to change the search for EOF in the Translate code. I do not remember if we have utf at that level or external. Whichever, we have to convert either inEofChar, or the char under consideration to have matching encodings, making the compare slower. Only alternative I can see is to change the ChannelState structure to hold a char in the proper encoding (and maybe in utf to handle encoding changes). Even so the cmp is likely slower.
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  8. Ticket change [70bbbbf5eb] (rid 100541) by stwo on 2007-11-09 23:13:00:

    1. icomment:
      Logged In: YES 
      user_id=143350
      Originator: NO
      
      Currently, -eofchar will not work as expected if the value of -eofchar is outside the range 0x01-0x7f.
      The -eofchar [fconfigure] option is rarely used.
      When it is used, it is rare for the value to be other than 0x1a (^Z).
      Modifying Tcl to accept an -eofchar outside of this range is fraught with complications.
      It is not worth the effort.
      If someone does indeed need an -eofchar outside of this range they can speak up and then we (I? Them?) can work towards fixing the problem.
      Until then, I recommend limiting the accepted range of -eofchar to 0x01-0x7f.
      Patch submitted (against Tcl8.5b2) to generate an error if -eofchar is outside of that range.
      The testsuite passes with this patch installed.
      
      
      
    2. login: "stwo"
    3. mimetype: "text/plain"
    4. username: "stwo"
  9. Ticket change [cd114f40d8] (rid 95814) by msofer on 2007-11-09 23:58:01:

    1. icomment:
      
      
      File Added - 253585: tclIO.c.patch
      
      Logged In: YES 
      user_id=148712
      Originator: NO
      
      Attaching patch #1829070 (and closing that ticket)
      File Added: tclIO.c.patch
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  10. Add attachment "tclIO.c.patch" [5dc261d574] (rid 115526) by msofer on 2007-11-09 23:58:01.

  11. Ticket change [3de43a7f90] (rid 121171) by dgp on 2007-11-10 02:54:39:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      patching to raise explicit
      error sounds better than silent
      failure.  thanks.
      
      Document the limitation too, and
      this one can be done.  thanks.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  12. Ticket change [dab218caf3] (rid 107835) by stwo on 2007-11-10 06:38:57:

    1. icomment:
      Logged In: YES 
      user_id=143350
      Originator: NO
      
      Is this adequate? Add it to the end of the -eofchar paragraph in fconfigure.n.
      
      The acceptable range for \fB\-eofchar\fR values is \ex01 - \ex7f; attempting to set \fB\-eofchar\fR to a value outside of this range will generate an error.
      
      
    2. login: "stwo"
    3. mimetype: "text/plain"
    4. username: "stwo"
  13. Ticket change [4a479f6d50] (rid 126510) by dgp on 2007-11-28 00:55:36:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      that fix sounds ok to me;
      agree andreas?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  14. Ticket change [1d0b0d9d18] (rid 90717) by andreas_kupries on 2007-11-28 01:11:11:

    1. icomment:
      Logged In: YES 
      user_id=75003
      Originator: NO
      
      Yes.
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  15. Ticket change [97fa820f30] (rid 110535) by dgp on 2007-11-28 01:47:15:

    1. assignee changed to: "dgp"
    2. priority changed to: "9 Immediate"
  16. Ticket change [ce648c1706] (rid 96044) by dgp on 2007-11-28 02:48:47:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      fix committed for 8.5.0.
      still open at lower prio
      for possible backport.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. priority changed to: "5 Medium"
    5. username: "dgp"
  17. Ticket change [1ee0a937d3] (rid 91050) by patthoyts on 2007-11-28 08:13:48:

    1. icomment:
      Logged In: YES 
      user_id=202636
      Originator: NO
      
      This patch broke Windows which sets up the console channel as -eofchar "\032 {}" meaning input ^Z, and no output char. The range restriction of 1 <> 0x7F causes this to be an error as the outValue becomes 0 (no eofchar).
      Fixed by changing the permissible range in the code to include 0.
      
      
    2. login: "patthoyts"
    3. mimetype: "text/plain"
    4. username: "patthoyts"
  18. Ticket change [6564fa0bd3] (rid 102538) by dgp on 2007-12-13 00:28:51:

    1. closedate changed to: "2007-12-12T17:28:51"
    2. closer changed to: "dgp"
    3. resolution changed to: "Fixed"
    4. status changed to: "Closed"