<i>[close] discards buffered data when no space left on device</i> status still Open with 4 other changes
by
.
D 2009-11-10T00:28:52
J icomment I\sthink\sit\sis\sin\sthe\scode\sbeginning\sat\sline\s3042\sof\stclIO.c:\n\n\s\s\s/*\n\s\s\s\s\s*\sWhen\sthe\schannel\shas\san\sescape\ssequence\sdriven\sencoding\ssuch\sas\n\s\s\s\s\s*\siso2022,\sthe\sterminated\sescape\ssequence\smust\swrite\sto\sthe\sbuffer.\n\s\s\s\s\s*/\n\n[...]\nWriteChars(chanPtr,\s"",\s0);\n[...]\nif\s(statePtr->chanMsg\s!=\sNULL)\s{\n\s\s\s\sif\s(interp\s!=\sNULL)\s{\nTcl_SetChannelErrorInterp(interp,statePtr->chanMsg);\n\s\s\s\s}\n\nAs\sproof,\sjust\s[fconfigure\s-translation\sbinary]:\sthe\serror\s"no\sspace\sleft\son\sdevice"\sis\sreported\sagain\s!\n\nThe\scrux\sof\sthe\sproblem\sis\sthat\sthe\serrorCode\s28\s(ENOSPC)\sis\sproperly\sreported\sinto\sthe\sinterpreter\sby\sFlushChannel,\sbut\sin\sthe\ssnippet\sabove,\sthe\sdetection\sis\sbased\son\sa\sbypass\smessage.\sAt\sthis\spoint\sthere\sis\sno\schanMsg,\sand\sall\strace\sof\san\serror\sis\sforgotten.\nI'd\sappreciate\sAndreas'\spresence\sto\sconfirm\sthe\sdiagnosis\sand\sprescribe\sthe\smedicine.\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 2888099fffffffffffffffffffffffffffffffff
U ferrieux
Z 7d04d2ebe2d53899d65f77a7b71da4d1