NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: misc/49249: Inconsistent line endings in some of the files under src/tests; makes svn whine
The following reply was made to PR misc/49249; it has been noted by GNATS.
From: Alan Barrett <apb%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: misc/49249: Inconsistent line endings in some of the files under
src/tests; makes svn whine
Date: Thu, 9 Oct 2014 08:54:30 +0200
On Wed, 01 Oct 2014, yaneurabeya%gmail.com@localhost wrote:
>>Synopsis: Inconsistent line endings in some of the files under src/tests; makes svn whine
I searched for files with embedded <CR> characters:
grep -l -R -e "$(printf '\r')" src/tests
and it found these:
src/tests/lib/libcurses/check_files/box_standout.chk
src/tests/lib/libcurses/check_files/background4.chk
src/tests/lib/libcurses/check_files/background5.chk
src/tests/lib/libcurses/check_files/color_blue_back.chk
src/tests/lib/libcurses/check_files/clear10.chk
src/tests/lib/libcurses/check_files/clear5.chk
src/tests/lib/libcurses/check_files/clear8.chk
src/tests/lib/libcurses/check_files/clear9.chk
src/tests/lib/libcurses/check_files/color_blank_draw.chk
src/tests/lib/libcurses/check_files/color_default.chk
src/tests/lib/libcurses/check_files/color_red_fore.chk
src/tests/lib/libcurses/check_files/copywin11.chk
src/tests/lib/libcurses/check_files/copywin12.chk
src/tests/lib/libcurses/check_files/copywin2.chk
src/tests/lib/libcurses/check_files/copywin4.chk
src/tests/lib/libcurses/check_files/copywin6.chk
src/tests/lib/libcurses/check_files/copywin7.chk
src/tests/lib/libcurses/check_files/copywin8.chk
src/tests/lib/libcurses/check_files/fill.chk
src/tests/lib/libcurses/check_files/wborder.chk
src/tests/lib/libcurses/check_files/wgetstr_refresh.chk
src/tests/lib/librumphijack/t_tcpip.sh
src/tests/usr.bin/sort/d_any_char_dflag_out.txt
src/tests/usr.bin/sort/d_any_char_fflag_out.txt
src/tests/usr.bin/sort/d_any_char_iflag_out.txt
src/tests/usr.bin/sort/d_any_char_in.txt
In every case, the use of <CR> is deliberate:
* In the libcurses *.chk files, they are there to match the output
from a program that uses curses(3).
* In src/tests/lib/librumphijack/t_tcpip.sh, there's one <CR>, and it's
used in a regular expression passed to sed. The <CR> is not at the end
of a line, so svn is wrong to complain about "inconsistent newlines".
This is the only <CR> that I found that could easily be replaced by
something else, and I changed it in CVS revision 1.13.
* In the sort *.txt files, the <CR> characters are used as input or
expected output for testing the sort(1) program.
--apb (Alan Barrett)
Home |
Main Index |
Thread Index |
Old Index