Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0b8d2eb1a9645ad1ca182853ff2ebdf452e67820
Ticket: 5bfe3de008e6f7b5863619a4f9c801d040ff5ab8
^Z appended to sourced VFS files
User & Date: aspect on 2017-08-09 09:58:47
Changes

  1. icomment:
    On unpatched Tcl, I see the same behaviour if [source /test/foo] is replaced 
    with:
    
    set fd [open /test/foo r]
    chan configure $fd -eofchar \032
    read $fd
    close $fd
    
    ::tcl::chan::variable always opens the channel {read write}, so of course it 
    happens without vfs as well.  The call to write can be observed by a trace 
    on the object constructed in the proc t:c:v.
    
    I think this could be fixed in ::tcl::chan (probably in events?), but maybe 
    it's worth the core protecting refchans that take this shortcut.
    
  2. login: "aspect"
  3. mimetype: "text/plain"