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 support <cygwin at sources dot redhat dot com>
- Subject: Re: serial port and unwanted NL -> CR/LF tranlastion
- From: Bruce Edge <bedge at sattel dot com>
- Date: Wed, 22 Nov 2000 15:52:00 -0800
- Organization: Sattel Global Networks
- References: <3A1C4FD1.C9B77949@sattel.com> <3A1C5479.C3669558@redhat.com>
Hi Corinna, thanks for the prompt response.
I tried this and it had no effect.
I added the O_BINARY and linked with /lib/binmode.
Is there some other library I should now exclude? I ask as since there were no
unresolved symbols before I added /lib/binmode.o, the link is picking up
whatever symbols are in binmode.o from somewhere else.
-Bruce.
Corinna Vinschen wrote:
>
> 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
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com