Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <3A1C5479.C3669558@redhat.com> Date: Thu, 23 Nov 2000 00:19:21 +0100 From: Corinna Vinschen X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.14-SMP i686) X-Accept-Language: de, en MIME-Version: 1.0 To: cygwin CC: cygwin Subject: Re: serial port and unwanted NL -> CR/LF tranlastion References: <3A1C4FD1 DOT C9B77949 AT sattel DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 AT sources DOT redhat DOT com Red Hat, Inc. mailto:vinschen AT redhat DOT com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com