[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.
Bruno
- Re: hello-2.1.91 build failure on MacOS X, (continued)
- Re: hello-2.1.91 build failure on MacOS X, Ralf Wildenhues, 2006/08/24
- Re: hello-2.1.91 build failure on MacOS X, Simon Josefsson, 2006/08/24
- Re: hello-2.1.91 build failure on MacOS X, Ralf Wildenhues, 2006/08/24
- Re: hello-2.1.91 build failure on MacOS X, Simon Josefsson, 2006/08/24
- Re: hello-2.1.91 build failure on MacOS X, Bruno Haible, 2006/08/24
Re: hello-2.1.91 build failure on MacOS X, Karl Berry, 2006/08/23
Re: hello-2.1.91 and CR/LF, Karl Berry, 2006/08/28
Re: hello-2.1.91 and CR/LF, Ralf Wildenhues, 2006/08/29
Re: hello-2.1.91 and CR/LF, Karl Berry, 2006/08/29
Re: hello-2.1.91 build failure on MacOS X, Bruno Haible, 2006/08/24
Re: hello-2.1.91 build failure on MacOS X, Karl Berry, 2006/08/24
hello-2.1.91 testsuite failure, Bruno Haible, 2006/08/22
hello-2.1.91: tweak tests, Bruno Haible, 2006/08/22
hello-2.1.91: no skip test, Bruno Haible, 2006/08/22