From: cgf AT bbc DOT com (Christopher Faylor) Subject: Re: Where does the "\n" to "\r\n" conversion take place? 29 Mar 1998 03:32:12 -0800 Message-ID: References: <199803220011 DOT AAA295428 AT out2 DOT ibm DOT net> Reply-To: cgf AT bbc DOT com To: gnu-win32 AT cygnus DOT com In article <199803220011 DOT AAA295428 AT out2 DOT ibm DOT net>, wrote: >> Bob McGowan (Bob_McGowan AT xstor DOT com) >> Wed, 18 Mar 1998 09:43:13 -0800 >> >>I cannot shed much light on how cygwin32 might do this, but for the >>Microsoft compilers, if I remember correctly, this is "built in" to the >>open() function. The basic operation is \r\n to \n on input and \n to >>\r\n on output for _TEXT_ files only. If a file is opened in BINARY >>mode (even if it is actually only text contents) no translation occurs >>and you will see both \r and \n in the input. So, if open() is found in >>crtdll.dll then mingw32 should also have this feature. >> >Thanks. I posted a note about how lynx has an `_fmode = O_BINARY' >statement that screws up text files and that causes the problem that >originally got me to post. Unfortunately, the censor at cygnus.com >has been refusing to post my messages to gnu-win32, so people like >you keep sending in followups. > >Now is that an enlightened attitude, I ask you? All it does is get me >to post this stuff to public internet forums, where cygnus certainly >does not control what gets posted, and where slights to cygnus get >spread much more widely than in gnu-win32. No, paranoia is not normally considered an enlightened attitude. -- http://www.bbc.com/ cgf AT bbc DOT com "Strange how unreal VMS=>UNIX Solutions Boston Business Computing the real can be." - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".