From: Bruno Haible Date: Fri, 26 Oct 2007 00:18:26 +0000 (+0000) Subject: Redirect stderr into a pipe. X-Git-Tag: v0.17~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3193074f30ee1ef7906cdd7b69c968777d3b84c4;p=thirdparty%2Fgettext.git Redirect stderr into a pipe. --- diff --git a/gnulib-local/ChangeLog b/gnulib-local/ChangeLog index 916aa55df..d3f2b21a7 100644 --- a/gnulib-local/ChangeLog +++ b/gnulib-local/ChangeLog @@ -1,3 +1,7 @@ +2007-10-25 Bruno Haible + + * tests/test-term-ostream-xterm: Redirect stderr into a pipe. + 2007-10-21 Bruno Haible * tests/test-term-ostream-xterm-solaris10.out: New file. @@ -6,6 +10,7 @@ * tests/test-term-ostream-xterm-irix65.out: New file. * tests/test-term-ostream-xterm-mingw.out: New file. * tests/test-term-ostream-xterm: Use them as possible test results. + * modules/term-ostream-tests (Files): Add the new files. * Makefile.am (EXTRA_DIST): Add the new files. 2007-10-17 Bruno Haible diff --git a/gnulib-local/tests/test-term-ostream-xterm b/gnulib-local/tests/test-term-ostream-xterm index 79e4f7f2d..3b4c6911a 100755 --- a/gnulib-local/tests/test-term-ostream-xterm +++ b/gnulib-local/tests/test-term-ostream-xterm @@ -4,7 +4,9 @@ tmpfiles="" trap 'rm -fr $tmpfiles' 1 2 3 15 tmpfiles="$tmpfiles out" -TERM=xterm ./test-term-ostream > out +# The redirection of stderr into a pipe avoids the output of padding bytes +# (unnecessary NUL bytes after escape sequences) on some systems. +(TERM=xterm ./test-term-ostream > out) 2>&1 | cat 1>&2 # There are several variants of the "xterm" terminal description floating # around, each with a different sgr0 escape sequence. Use "infocmp -l -1 xterm"