[Top][All Lists]

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

Re: hello-2.1.91 and CR/LF

From: Bruno Haible
Subject: Re: hello-2.1.91 and CR/LF
Date: Fri, 25 Aug 2006 14:56:39 +0200
User-agent: KMail/1.9.1

Karl Berry wrote:
>     However, on MinGW all three tests fail because the program outputs CRLF
>     line endings, while the test suite creates files with LF ending.
>     (Not sure if you want to worry about this...) 
> Not sure if I do either.  What do other (real) programs do?

Some programs, which produce output from given input (such as 'iconv' or
'diff') can use in the output the line termination convention they found
in the input. No command-line option required in this case.

Programs which produce output without input, such as hello, can either
accept a --binary option (whose effect is to invoke
SET_BINARY(fileno(stdout)) - see gnulib module 'binary') and have the
testsuite invoke the program with --binary. Or produce output with CR/LF
always, and have the testsuite use "tr -d '\015'" before the comparison.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]