Mail Archives: djgpp/2001/04/10/13:18:47
In the docs for DJGPP lib.c `open':
O_TEXT
The file is opened in text mode, meaning that Ctrl-M characters are
stripped on reading and added on writing as needed. The default mode
is specified by the _fmode variable section _fmode.
The effect I want, however, is to strip ^M on reading and _do not_
add them back when writing (i.e., always write text files with unix
NL line endings).
Should I open in text mode and then write in binary mode?
--
TIA/jtw
- Raw text -