This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: dlltool emits extraneous CRs when using def file with CRLF endings


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]