From mboxrd@z Thu Jan 1 00:00:00 1970 From: Urban Widmark To: Earnie Boyd Cc: gnu-win32@cygnus.com Subject: Re: When is \n converted to \r\n? and why? Date: Mon, 02 Nov 1998 05:50:00 -0000 Message-id: References: <19981031144306.11669.rocketmail@send103.yahoomail.com> X-SW-Source: 1998-11/msg00052.html On Sat, 31 Oct 1998, Earnie Boyd wrote: > > Which means writing the file to disk and then doing cat is not the > same as > > piping it directly. I think that is wrong. > > > > Yep! Me too. So I wasn't completely off target then ... > What _WINDOWS_ program doesn't like a \r\n? Please inform us as this > is very unwindows like. > It's a plugin for MS IIS called ServletExec ( http://www.newatlanta.com/ ), we wanted to automate the configuration of our servlets by using a nice bash script and write all the parameters, classpath etc to the config files directly instead of using the graphical interface. This fails if the created files contain \r\n. But except for the pipes I guess this was just another FAQ which deserved a RTFM answer (which I didn't get, someone must be having too much time on their hands :). The b20 FAQ is much better on this topic, except it doesn't say what the binmode setting does, and it isn't mentioned in the "How is the DOS/Unix CR/LF thing handled?" entry. "... mode to binary via mount point options or by setting the CYGWIN32 environment variable." changed to "... mode to binary via mount point options or by setting binmode in the CYGWIN32 environment variable." or something? /Urban --- Urban Widmark urban@svenskatest.se Svenska Test AB +46 90 71 71 23 - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help".