Thread (7 messages) flat view 7 messages, 4 authors, 2016-06-15

Re: "make test" fails with current HEAD

From: Matthias Urlichs <hidden>
Date: 2016-06-15 22:42:12

Hi, Junio C Hamano wrote:
Matthias Urlichs [off-list ref] writes:
quoted
quoted
quoted
Files /dev/null and b/file3 differ
Of course, with LANG=de_DE.UTF-8 the situation is worse ...
A midway compromise solution would be to detect if either file
is binary ourselves and not to call diff but always say "Binary
files difer".
Actually, there's a better way:

$ diff -u /dev/null /tmp/ra
Binary files /dev/null and /tmp/ra differ
$ echo $?
2

So the trivial fix is to emit our own "Binary files FOO and BAR differ"
line if the exit status is 2.

-- 
Matthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |  smurf@smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
 - -
If a man will go as far as he can see, he will be able to see farther when
he gets there.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help