-
You are misunderstanding the snippet. It looks for a bypass message, yes, and moves such a message up for use by the caller, yes. When there is no message in the bypass then the regular reporting of whatever is in errno should happen. The bypass stuff will happen only if it is used by a channel driver (see tclIORefChan/tclIORefTrans.c), and otherwise the regular error reporting is in effect...
2009-11-09 18:38:30 UTC by andreas_kupries
-
I think it is in the code beginning at line 3042 of tclIO.c:
/*
* When the channel has an escape sequence driven encoding such as
* iso2022, the terminated escape sequence must write to the buffer.
*/
[...]
WriteChars(chanPtr, "", 0);
[...]
if (statePtr->chanMsg != NULL) {
if (interp != NULL) {
Tcl_SetChannelErrorInterp(interp,statePtr->chanMsg);
}.
2009-11-09 17:28:53 UTC by ferrieux
-
I can't see where the error is getting lost. Channel close-down is really rather complex... :-(.
2009-11-09 16:44:17 UTC by dkf
-
dkf committed patchset 11562 of module tcl to the Tcl CVS repository, changing 3 files.
2009-11-09 13:47:23 UTC by dkf
-
Added documentatoin in catch.n and info.n.
2009-11-09 13:26:40 UTC by ferrieux
-
dkf committed patchset 11561 of module tcl to the Tcl CVS repository, changing 1 files.
2009-11-08 20:18:43 UTC by dkf
-
dkf committed patchset 11560 of module tcl to the Tcl CVS repository, changing 1 files.
2009-11-08 20:01:18 UTC by dkf
-
dkf committed patchset 11559 of module tcl to the Tcl CVS repository, changing 1 files.
2009-11-08 19:56:45 UTC by dkf
-
There is no need to specify a version. Just suggest fetching the latest version of msys and mingw.
2009-11-07 21:15:06 UTC by patthoyts
-
On Windows the page file c:\pagefile.sys is always open and locked. In NativeAccess we try using GetFileAttributes but this will return ERROR_SHARING_VIOLATION and -1, leading Tcl to believe the file does not exist. Similar code is in NativeStat fails for the same reason. So we cannot currently test for the existence or size or mtime for this file. However if we then try FindFirstFile for the...
2009-11-07 10:21:21 UTC by patthoyts