Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a0ed80e52419676c3f509c25c336fd994103b3b5
Ticket: 736378ffffffffffffffffffffffffffffffffff
DJGPP tcl does'nt read binary files correctly
User & Date: vbwagner on 2003-05-12 08:24:36
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    DJGPP requires special flag O_BINARY in order to not
    terminate
    reading of file upon encounder of EOF character (\x1F)
    
    There is no provision for this flag in tclUnixChan.c
    
    So,  regardless of configuration option,  -eofchar
    (which seems to 
    not be handled by DJGPP port at all) file reading is
    termintated
    upon first \x1F character.
    
    It is possible however to seek after offending
    character and read
    rest of file.
    
    Tcl commands open/read and file copy are affected
    
    Following patch fixes this problem in quick and dirty
    way, adding
    O_BINARY to every open call in hope that upper levels
    of Tcl
    channel code would deal with eol issues.
    
    It seems that for proper filesystem handling DJGPP
    environment
    shouldn't be treated as "Yet another Unix", because
    most of DOS filesystem issues are rather Windows-like.
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "vbwagner"
  9. subsystem changed to: "95. contrib ports"
  10. title changed to: "DJGPP tcl does'nt read binary files correctly"
  11. type changed to: "Patch"