Skip to content
Tcl Source Code Artifact [5a135730d2]
Login

Artifact [5a135730d2]

Artifact 5a135730d2f0c663d619499e7f8de26714be2058:

Ticket change [5a135730d2] - New ticket [930851ffffffffff|930851ffff] <i>eofchar change: strange buffer limit ?</i>. by dgp on 2004-04-07 05:01:14.
D 2004-04-07T05:01:14
J assignee andreas_kupries
J cmimetype text/plain
J comment \nAnnotated\sinteractive\stclsh\ssession:\n\n%\sset\sf\s[open\s../generic/tclVar.c\sr]\nfile3\n\n\s\s\s\s\s\s\s\s\s\s\sopen\sa\sfile\sI\sknow\saku\shas.\n\n%\sfconfigure\s$f\n-blocking\s1\s-buffering\sfull\s-buffersize\s4096\s-encoding\niso8859-1\s-eofchar\s{}\s-translation\sauto\n%\sfconfigure\s$f\s-eofchar\s=\n\n\s\s\s\s\s\s\s\s\s\s\sset\seof\schar\sto\ssomething\sunusual\n\n%\sread\s$f;\stell\s$f\n834\n\n\s\s\s\s\s\s\s\s\s\s\s\sread\sto\s"EOF"\s\s--\sthe\sfirst\seof\schar\n\n%\sfconfigure\s$f\s-eofchar\s{}\n\n\s\s\s\s\s\s\s\s\s\s\s\sChange\sback\sto\sno\seof\schar\n\n%\sread\s$f\s1\n=\n\n\s\s\s\s\s\s\s\s\s\s\s\s\sSee,\swe\sread\sup\sto\sthat\s=\n\n\s\s\s\s\s\s\s\s\s\s\s\s\sNow\slets\sread\sthe\srest\sof\sthe\sfile:\n\n%\sread\s$f;\stell\s$f\n4096\n\n\s\s\s\s\s\s\s\s\s\s\s\s\sWhat's\sthis?\s\sIt\slooks\slike\sonly\sone\n\s\s\s\s\s\s\s\s\s\s\s\s\sbuffer\sgot\sfilled,\sand\sthen\sit\squit.\n\n%\sseek\s$f\s0\sstart\n%\sread\s$f;\stell\s$f\n147065\n\n\s\s\s\s\s\s\s\s\s\s\s\s\s\sA\s[seek]\sto\sthe\sbeginning\sof\sthe\sfile\n\s\s\s\s\s\s\s\s\s\s\s\s\s\srestores\snormal\s[read]\sto\sEOF.\n\nBug,\sundocumented\sfeature,\sor\spilot\serror?\n
J foundin obsolete:\s8.5a2
J priority 5\sMedium
J resolution None
J status Open
J submitter dgp
J subsystem 25.\sChannel\sSystem
J title eofchar\schange:\sstrange\sbuffer\slimit\s?
J type Bug
K 930851ffffffffffffffffffffffffffffffffff
U dgp
Z 0290098ed98b30565a478bb56a1bb3a9