summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandreas_kupries <akupries@shaw.ca>2008-04-02 20:26:08 (GMT)
committerandreas_kupries <akupries@shaw.ca>2008-04-02 20:26:08 (GMT)
commite1d96cff90ac8c37cb05dbb8d8c46a693024d178 (patch)
tree6c69ce6adac3e840e274188c6f9e6e475794af12
parentf4e73527836ef586247d16d1d93742e37025284f (diff)
downloadtcl-e1d96cff90ac8c37cb05dbb8d8c46a693024d178.zip
tcl-e1d96cff90ac8c37cb05dbb8d8c46a693024d178.tar.gz
tcl-e1d96cff90ac8c37cb05dbb8d8c46a693024d178.tar.bz2
* generic/tclIO.c (CopyData): Applied patch for the fcopy problem
[Bug 780533], with many thanks to Alexandre Ferrieux <ferrieux@users.sourceforge.net> for tracking it down and providing a solution. Still have to convert his test script into a proper test case.
-rw-r--r--ChangeLog8
-rw-r--r--generic/tclIO.c4
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 03cfb3a..b546bf0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-04-02 Andreas Kupries <andreask@activestate.com>
+
+ * generic/tclIO.c (CopyData): Applied patch for the fcopy problem
+ [Bug 780533], with many thanks to Alexandre Ferrieux
+ <ferrieux@users.sourceforge.net> for tracking it down and
+ providing a solution. Still have to convert his test script into
+ a proper test case.
+
2008-04-01 Andreas Kupries <andreask@activestate.com>
* generic/tclStrToD.c: Applied patch for [Bug 1839067] (fp
diff --git a/generic/tclIO.c b/generic/tclIO.c
index 4caa474..c153e0f 100644
--- a/generic/tclIO.c
+++ b/generic/tclIO.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclIO.c,v 1.137 2008/01/20 21:16:15 hobbs Exp $
+ * RCS: @(#) $Id: tclIO.c,v 1.138 2008/04/02 20:26:09 andreas_kupries Exp $
*/
#include "tclInt.h"
@@ -8731,7 +8731,7 @@ CopyData(
* don't starve the rest of the system.
*/
- if (cmdPtr) {
+ if (cmdPtr && (csPtr->toRead != 0)) {
/*
* The first time we enter this code, there won't be a channel
* handler established yet, so do it here.