This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: serial port and unwanted NL -> CR/LF tranlastion
- To: cygwin <cygwin at cygwin dot com>
- Subject: Re: serial port and unwanted NL -> CR/LF tranlastion
- From: Corinna Vinschen <vinschen at redhat dot com>
- Date: Thu, 23 Nov 2000 00:19:21 +0100
- CC: cygwin <cygwin at cygwin dot com>
- References: <3A1C4FD1.C9B77949@sattel.com>
Bruce Edge wrote:
>
> I opened /dev/com1 using:
> open( name, O_RDWR | O_NOCTTY | O_NONBLOCK )
> and when I write to it using:
> write( fd, buf, len );
> any 0x0a bytes are getting translated into 0x0d 0x0a pairs.
>
> How can I stop this?
Try
open( name, O_RDWR | O_NOCTTY | O_NONBLOCK | O_BINARY)
or link your application with /lib/binmode.o
> This code runs fine on Linux/QNX.
Wow, I'm surprised...
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@sources.redhat.com
Red Hat, Inc.
mailto:vinschen@redhat.com
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com