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

Artifact [5d426133cc]

Artifact 5d426133ccda68311d310f01680f1f59940e0b0f:

Ticket change [5d426133cc] - New ticket [218524ffffffffff|218524ffff] <i>every 4096th char is changed to a carriage return</i>. by nobody on 2000-10-26 01:01:40.
D 2000-10-26T01:01:40
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s887\sBug\nVersion:\s8.1a2\nSubmitDate:\s'1998-12-02'\nLastModified:\s'1999-11-04'\nSeverity:\sCRIT\nStatus:\sReleased\nSubmitter:\sadmin\nChangedBy:\shershey\nOS:\sAll\nOSVersion:\sNA\nMachine:\sNA\nFixedDate:\s'1999-11-04'\nFixedInVersion:\s8.1b1\nClosedDate:\s'2000-10-25'\n\n\nI\shave\sdiscovered\sthe\sfollowing\sproblem\sin\sboth\stcl8.1a2\sand\sthe\snet\ndistribution\sof\stcl8.1.\sBasically,\sif\syou\swrite\sout\smore\sthan\s4096\sbytes\sof\ndata\sthat\shas\scarriage\sreturns\sin\sit\sto\sa\schannel\swhich\shas\sbeen\nfconfigured\sto\shave\stranslation\scrlf,\sit\swill\schange\severy\s4096th\scharacter\nto\sa\scarriage\sreturn.\n\nSyd\sPolk\n\nThe\sfollowing\sscript\sillustrates\sthe\sproblem:\n\n#\sTest\s1\s-\sCase\sthat\sworks\nset\sbigstring\s{}\n\nfor\s{set\si\s0}\s{$i\s<\s10000}\s{incr\si}\s{\nappend\sbigstring\s"0"\n}\n\nset\sf\s[open\sfoo.out\sw]\nfconfigure\s$f\s-translation\scrlf\nputs\s$f\s$bigstring\snonewline\nclose\s$f\n\nset\sf\s[open\sfoo.out]\nfconfigure\s$f\s-translation\scrlf\nset\sreadstring\s[read\s$f]\nclose\s$f\ncatch\s{file\sdelete\s-force\sfoo.out}\n\nif\s{[string\scompare\s$bigstring\s$readstring]\s!=\s0}\s{\nputs\s"Test\s1\sdid\snot\swork"\n}\n\n#\sTest\s2\s-\sFails\n\nset\sbigstring\s{}\n\nfor\s{set\si\s0}\s{$i\s<\s10000}\s{incr\si}\s{\nappend\sbigstring\s"000000000\\n"\n}\n\nset\sf\s[open\sfoo.out\sw]\nfconfigure\s$f\s-translation\ncrlf\nputs\s$f\s$bigstring\snonewline\nclose\s$f\n\nset\sf\s[open\sfoo.out]\nfconfigure\n$f\s-translation\scrlf\nset\sreadstring\s[read\s$f]\nclose\s$f\ncatch\s{file\sdelete\n-force\sfoo.out}\n\nif\s{[string\scompare\s$bigstring\s$readstring]\s!=\s0}\s{\nputs\s"Test\s2\sdid\snot\swork"\n}\n\n\nFixed...\s\n--\s11/04/1999\shershey
J foundin obsolete:\s8.1a2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 57.\szlib
J title every\s4096th\schar\sis\schanged\sto\sa\scarriage\sreturn
J type Bug
K 218524ffffffffffffffffffffffffffffffffff
U nobody
Z 408b6910062ce048318eb0ef22d99769