Skip to content
Tcl Source Code Artifact [54653d077d]
Login

Artifact [54653d077d]

Artifact 54653d077df9dc790c9fc2c4f995f90e49c71a1b:

Ticket change [54653d077d] - New ticket [524674ffffffffff|524674ffff] <i>bad cleanup of channels / encs on exit</i>. by hobbs on 2002-03-02 04:30:42.
D 2002-03-02T04:30:42
J assignee andreas_kupries
J cmimetype text/plain
J comment If\syou\sset\sthe\sencoding\son\sa\sfile\sto\san\sescape\s\nencoding\sand\sthen\sexit\sbefore\sclosing\sthat\sfile,\sTcl\s\ndoesn't\sclean\sup\sin\sthe\sright\sorder,\sand\syou\scrash\sdue\s\nto\sfree\smemory\sreads/writes.\s\sA\ssimple\sexample:\n\nlorax\s[~/build/tcl84a4s]\s25\s>\smake\sshell\n%\sfconfigure\sstdout\s-encoding\siso2022-jp\n%\sputs\sab\\u4e4e\\u68d9g\nab8CD%g\n%\sexit\nmake:\s***\s[shell]\sError\s139\n\nbut\sit\scan\sbe\sdone\swith\sany\sfile.\s\sThe\ssample\sattached\s\ncan\sbe\sused\sfor\sa\smore\s"robust"\stest:\n\nset\sf\s[open\siso.sample]\nfconfigure\s$f\s-encoding\siso2022-jp\ngets\s$f\nexit\n
J foundin obsolete:\s8.3.4
J priority 7\sHigh
J resolution None
J status Open
J submitter hobbs
J subsystem 25.\sChannel\sSystem
J title bad\scleanup\sof\schannels\s/\sencs\son\sexit
J type Bug
K 524674ffffffffffffffffffffffffffffffffff
U hobbs
Z e7252a85b582c429a264e8afdb80d2c3