Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3f3df6c53b97742b7124fc2c093debdcf428364b
Ticket: 5bfe3de008e6f7b5863619a4f9c801d040ff5ab8
^Z appended to sourced VFS files
User & Date: aspect on 2017-08-14 11:34:50
Changes

  1. icomment:
    Well this is certainly wrong:
    
    % proc test {} {
        set fd [open test w+]
        chan configure $fd -eofchar P
        puts $fd "Test"
        seek $fd 0 start
        close $fd
    }
    % test
    % exec cat test
    Pest
    
    CloseChannel() has written an eofchar wherever in the file it happens to be 
    since at least 1998 - I didn't look further than [cacdd0f329].
    
    I guess the question becomes:  when is it appropriate to append an "EOF 
    character" to a file?  I suspect and hope the correct answer is "never".
    
  2. login: "aspect"
  3. mimetype: "text/plain"