Pserver on cygwin corrupts binary files

Igor Pechtchanski pechtcha@cs.nyu.edu
Wed Feb 18 14:37:00 GMT 2004


On Wed, 18 Feb 2004, Alejandro Lopez-Valencia wrote:

> On Wed, 18 Feb 2004 11:01:09 +0100, Corinna Vinschen wrote:
>
> >On Feb 17 18:16, Alejandro Lopez-Valencia wrote:
> >> Because when using textmode, cygwin changes the semantics of I/O
> >> functions in the underlying C runtime. It does (and forces) EOL
> >> conversion on all files read and written to the filesystem as well as
> >> *sockets* and *pipes* for all applications compiled with the runtime.
> >
> >Nope.  Sockets reads and writes are always binary.
> >
> >Corinna
>
> Thanks for ether correction. But wasn't that the case a couple of
> years back?

The textmode mount flag affects neither pipes nor sockets, and never did.
There is a "(no)binmode" $CYGWIN setting that affects pipes, but I'm not
sure if it also affects sockets.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list