diff options
author | andy <andrew.m.goth@gmail.com> | 2017-08-07 01:16:39 (GMT) |
---|---|---|
committer | andy <andrew.m.goth@gmail.com> | 2017-08-07 01:16:39 (GMT) |
commit | 664774bec4189d84722d2e34193bee298a883264 (patch) | |
tree | a4473ee664f0fd5cac5b1f56dfe76fbabe92385b /generic | |
parent | 3cf11a1ce9256625b71678d681e8e37d68cf1d24 (diff) | |
download | tcl-664774bec4189d84722d2e34193bee298a883264.zip tcl-664774bec4189d84722d2e34193bee298a883264.tar.gz tcl-664774bec4189d84722d2e34193bee298a883264.tar.bz2 |
[5bfe3de008]: Modify [source] to set input EOF character but not output EOF character. This avoids having ^Z being appended to the sourced file when it is an always-writable [tcl::chan::variable] in a custom VFS. Tested by adding this same change as a patch to Tcl 8.6.6 in KitCreator because that seems to be the easiest way to get custom VFS capability exposed as script commands. Original problem introduced by [03cdfc3a86] 2000-05-11 00:16:52.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclIOUtil.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c index ea407ab..2c389c6 100644 --- a/generic/tclIOUtil.c +++ b/generic/tclIOUtil.c @@ -1764,7 +1764,7 @@ Tcl_FSEvalFileEx( * this cross-platform to allow for scripted documents. [Bug: 2040] */ - Tcl_SetChannelOption(interp, chan, "-eofchar", "\32"); + Tcl_SetChannelOption(interp, chan, "-eofchar", "\32 {}"); /* * If the encoding is specified, set it for the channel. Else don't touch @@ -1899,7 +1899,7 @@ TclNREvalFile( * this cross-platform to allow for scripted documents. [Bug: 2040] */ - Tcl_SetChannelOption(interp, chan, "-eofchar", "\32"); + Tcl_SetChannelOption(interp, chan, "-eofchar", "\32 {}"); /* * If the encoding is specified, set it for the channel. Else don't touch |