Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sun, 15 May 2005 12:10:36 -0700 From: Yitzchak Scott-Thoennes To: cygwin AT cygwin DOT com Subject: Re: dlltool emits extraneous CRs when using def file with CRLF endings Message-ID: <20050515190924.GA2964@efn.org> References: <20050513015255 DOT GA3832 AT efn DOT org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050513015255.GA3832@efn.org> User-Agent: Mutt/1.4.1i X-IsSubscribed: yes On Thu, May 12, 2005 at 06:52:56PM -0700, Yitzchak Scott-Thoennes wrote: > For some reason, when I run dlltool using a def file with CRLF line > endings, it is outputing CRs to stdout. Is there a reason for this? > It's breaking some automated test scripts for me. > > $ od foo.def > 000000 45 58 50 4f 52 54 53 0a 20 20 66 6f 6f 0a 20 20 >EXPORTS. foo. < > 000010 5f 66 6f 6f 20 3d 20 66 6f 6f 0a 20 20 0a >_foo = foo. .< > 00001e > > $ !dll > dlltool --input-def foo.def --output-exp foo.exp|od > 000000 > > $ u2d foo.def > foo.def: done. > > $ dlltool --input-def foo.def --output-exp foo.exp|od > 000000 0d 0d 0d 0d >....< > 000004 > > $ alias od > alias od='od -A x -v -t x1z' This patch fixes it for me: --- binutils-20041229-1/binutils/deflex.l.orig 2005-05-15 12:03:31.295483200 -0700 +++ binutils-20041229-1/binutils/deflex.l 2005-05-15 12:03:38.105275000 -0700 @@ -81,6 +81,7 @@ ";".* { } " " { } "\t" { } +"\r" { } "\n" { linenumber ++ ;} "=" { return '=';} "." { return '.';} -- 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/