木村巌 on Thu, 15 Jan 2004 15:33:09 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: desc system on cygwin


Hi,

>On Thu, Jan 15, 2004 at 03:07:57PM +0900, ?$BLZB<4` wrote:
>> input record separator $/ is assumed to be "\n", but on Cygwin, this is 
>> "\r\n". This causes pari.desc file become empty, and everything goes bad.
>> After modified this line, I could build good and sound gp.exe.
>
>I am not sure I completly understand.
>
>1) What program is messing with the file in the first place ? The
>original file use \n as 'end of line' character. Does CVS convert it
>to \r\n ?

Yes. CVS on cygwin converts end-of-line to \r\n when it checks out 
source tree (and re-convert \r\n to \n when it checks in. Thus the 
end-of-line character in CVS repository is always \n). This seems, 
though I didn't know, popular problem. 
If you are in doubt, please try :-)

>2) Is it sufficient to remove the line `local $/="\n";' ?

No. Perl's (on cygwin) default value of $/ is "\n".
(This is perl, v5.8.0 built for cygwin-multi-64int) 

>3) Is there a better way to proceed ?

One easy way is to create 822.pm from its template (like 822.pm.in) when 
Configure runs. I'm not sure that this is better way...

Thanks.