Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3c5be37c7e1acaa211cf2b299b953e9377a47fca
Ticket: 1027690fffffffffffffffffffffffffffffffff
read $channel [file size "myfile"] doesn't work in 8.4 head
User & Date: wobster on 2004-09-14 04:58:01
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    I just checked out the head of the 8.4 branch. It
    appears that there is a bug related to the "read"
    command when executing this test case:
    
    set f [open "myfile" r]
    set contents [read $f [file size "myfile"]]
    
    nothing is read.
    
    But, if you do this:
    
    set bytes [file size "myfile]
    set contents [read $f $bytes]
    
    it works fine.
    
    This worked in earlier versions of 8.4.
    
    p.s. please delete previous bug report. I wasn't logged
    in when I submitted the bug.
    
  4. foundin changed to: "obsolete: 8.4.7"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "wobster"
  9. subsystem changed to: "18. Commands M-Z"
  10. title changed to:
    read $channel [file size "myfile"] doesn't work in 8.4 head
    
  11. type changed to: "Bug"