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
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- 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.
- foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "vbwagner"
- subsystem changed to: "95. contrib ports"
- title changed to: "DJGPP tcl does'nt read binary files correctly"
- type changed to: "Patch"