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 X-Envelope-Sender-Is: Andrej DOT Borsenkow AT mow DOT siemens DOT ru (at relayer david.siemens.de) From: "Andrej Borsenkow" To: "Bruce Edge" , "cygwin support" Subject: RE: serial port and unwanted NL -> CR/LF tranlastion Date: Thu, 23 Nov 2000 09:58:19 +0300 Message-ID: <000801c0551a$c2f4fd00$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <3A1C5C20.59F02EF4@sattel.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal LF -> CR-LF translation is normal when you output to terminal and is done by tty driver (onlcr mode). Is it possible that COM driver is actually tty in disguise on Cygwin? In this case you could use termios functions to turn onlcr off. -andrej > -----Original Message----- > From: cygwin-owner AT sources DOT redhat DOT com > [mailto:cygwin-owner AT sources DOT redhat DOT com]On Behalf Of Bruce Edge > Sent: Thursday, November 23, 2000 2:52 AM > To: cygwin support > Subject: Re: serial port and unwanted NL -> CR/LF tranlastion > > > 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 AT sourceware DOT cygnus DOT com > > -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com