diff options
author | andreas_kupries <akupries@shaw.ca> | 2009-07-23 22:49:15 (GMT) |
---|---|---|
committer | andreas_kupries <akupries@shaw.ca> | 2009-07-23 22:49:15 (GMT) |
commit | bd734d2cf44d9550acd5c2ca3e6c5b17f9b03f72 (patch) | |
tree | bb266e4b6080a9f87761ad98dbe1162bb8e036ad /tools/genStubs.tcl | |
parent | c1fefc1d02ee22ae574e79cc397b5a477b0efcf4 (diff) | |
download | tcl-bd734d2cf44d9550acd5c2ca3e6c5b17f9b03f72.zip tcl-bd734d2cf44d9550acd5c2ca3e6c5b17f9b03f72.tar.gz tcl-bd734d2cf44d9550acd5c2ca3e6c5b17f9b03f72.tar.bz2 |
* generic/tclIO.c (Tcl_GetChannelHandle): Do not crash for
* generic/tclPipe.c (FileForRedirect): getHandleProc == NULL, this
is allowed. Provide a nice error message in the bypass
area. Updated caller to check the bypass for a mesage. This fixes
the bug [Bug 2826248] reported by Andy Sonnenburg
<andy22286@users.sourceforge.net>
Diffstat (limited to 'tools/genStubs.tcl')
-rw-r--r-- | tools/genStubs.tcl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/genStubs.tcl b/tools/genStubs.tcl index 17fb4ac..96a1a83 100644 --- a/tools/genStubs.tcl +++ b/tools/genStubs.tcl @@ -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: genStubs.tcl,v 1.29 2008/10/22 20:24:00 nijtmans Exp $ +# RCS: @(#) $Id: genStubs.tcl,v 1.30 2009/07/23 22:49:15 andreas_kupries Exp $ package require Tcl 8.4 @@ -208,6 +208,9 @@ proc genStubs::rewriteFile {file text} { set in [open ${file} r] set out [open ${file}.new w] + # Hardwire the genstubs output to Unix eol. + fconfigure $out -translation lf + while {![eof $in]} { set line [gets $in] if {[string match "*!BEGIN!*" $line]} { |