Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6596ce1bd69bf97cb70b91b7cf1d9ec75e42a6d270231cfc855f2e3e7f0f0e35
Ticket: 1d26e580cfcb7ac096cfe9cd76c87f39415120c2
safe interp can't source files with BOM
User & Date: jan.nijtmans on 2024-06-13 12:05:41
Changes

  1. icomment:
    Fixed [a7efbe19650e6b1f|here]
    
    Changing the use of -eofchar is not a good idea IMHO. What if a file has a 100-byte script followed by \x1A followed by a 1Gb zip-file .... Then - with your proposal - the whole 1Gb will be loaded in memory. The advantage of -eofchar is that the reading stops when the character is encountered.
    
    The use of -eofchar in output channels was a bad idea, that's fixed in 9.0. But I think -eofchar should be kept for input channels.
    
  2. login: "jan.nijtmans"
  3. mimetype: "text/x-fossil-wiki"