This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: dlltool emits extraneous CRs when using def file with CRLF endings
- From: Yitzchak Scott-Thoennes <sthoenna at efn dot org>
- To: cygwin at cygwin dot com
- Date: Sun, 15 May 2005 12:10:36 -0700
- Subject: Re: dlltool emits extraneous CRs when using def file with CRLF endings
- References: <20050513015255.GA3832@efn.org>
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/