Artifacts Associated With Ticket 930851ffffffffffffffffffffffffffffffffff
Ticket change [5a135730d2] (rid 118080) by dgp on 2004-04-07 05:01:14:
- assignee initialized to: "andreas_kupries"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Annotated interactive tclsh session: % set f [open ../generic/tclVar.c r] file3 open a file I know aku has. % fconfigure $f -blocking 1 -buffering full -buffersize 4096 -encoding iso8859-1 -eofchar {} -translation auto % fconfigure $f -eofchar = set eof char to something unusual % read $f; tell $f 834 read to "EOF" -- the first eof char % fconfigure $f -eofchar {} Change back to no eof char % read $f 1 = See, we read up to that = Now lets read the rest of the file: % read $f; tell $f 4096 What's this? It looks like only one buffer got filled, and then it quit. % seek $f 0 start % read $f; tell $f 147065 A [seek] to the beginning of the file restores normal [read] to EOF. Bug, undocumented feature, or pilot error? - foundin initialized to: "obsolete: 8.5a2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "25. Channel System"
- title initialized to: "eofchar change: strange buffer limit ?"
- type initialized to: "Bug"
Ticket change [7c34e1ea63] (rid 97038) by dgp on 2004-04-07 23:11:41:
- icomment:
Logged In: YES user_id=80530 Perhaps there's some internal flag that needs to be reset when the -eofchar changes?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [c7a5bfda80] (rid 121965) by andreas_kupries on 2004-04-24 05:56:30:
- icomment:
Logged In: YES user_id=75003 Chat log aku - From the description it looks like a bug where internal flags of the channel are not properly changed when changing the eofchar. Most likely something like stick_eof dgp - aku, it appears that any [seek] at all, even [seek $f 0 current] will workaround the problem
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [2b48332e1e] (rid 118714) by andreas_kupries on 2004-04-24 06:42:59:
- closedate changed to: "2004-04-23T23:42:59"
- closer changed to: "andreas_kupries"
- icomment:
Logged In: YES user_id=75003 Yes, the seek zaps a number of flags which should be zapped when changing the eofchars as well. Added testcases, added fix. Testsuite is ok with fix. New testcase fails before fix, and is ok after. Committed to both 8.4 and head.
- login: "andreas_kupries"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "andreas_kupries"