Why text=binary mounts (Re: Gnu-win32 (b18), coolview and NTE
Sat Jan 10 21:28:00 GMT 1998
Sorry about that last dup message, fat fingered it and hit send
before adding any content.
Perhaps the slickest solution I've seen is in the Codewright
when reading a file, it determines whether the text file has been
delimited by \n or \r\n (I don't think it handles \r), and
of the original format, preserves that and uses that as the line
delimiter for that open file.
Opening pure binary files also works without corrupting the file,
it always preserves the original binary. Inserts are simply made
to match the format determined when opening the file (by default,
be changed after the file is opened as I recall).
For new & empty files, I think it defaults to native \r\n.
This is a fairly slick technique, and works well regardless.
not the only place the shows up of course, ftps, nfs mounts,
sneakernet -- all have problems.
Of course, you also want the trivial filters to put the files
into your native O/S preferred format, at least until all
programs get this smart (probably in time to worry about the year
>>Not necessarily. Various programs do this, including vim and,
>>>How do the MS-land programs that understand both line
>>>They probably just accept either on input, then do \r\n on
For help on using this list (especially unsubscribing), send a message to
"firstname.lastname@example.org" with one line of text: "help".
More information about the Cygwin