diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-12-18 22:44:56 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-12-19 07:44:20 -0800 |
commit | 7b90363099e55835885052e7c0512d2af7fdc035 (patch) | |
tree | 0cc3525f2ddb192bf31cd1487c9e2a82f8e50b23 /t/lib-gettext.sh | |
parent | 086cb911533d6f4233e84c93b08da289ecc8a229 (diff) | |
download | git-7b90363099e55835885052e7c0512d2af7fdc035.tar.gz |
t0200: "locale" may not exist
On systems without "locale" installed, t0200-gettext-basic.sh leaked
error messages when checking if some test locales are available.
Hide them, as they are not very useful.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/lib-gettext.sh')
-rw-r--r-- | t/lib-gettext.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/t/lib-gettext.sh b/t/lib-gettext.sh index 0f76f6cdc0..ae8883a075 100644 --- a/t/lib-gettext.sh +++ b/t/lib-gettext.sh @@ -14,12 +14,14 @@ export GIT_TEXTDOMAINDIR GIT_PO_PATH if test_have_prereq GETTEXT && ! test_have_prereq GETTEXT_POISON then # is_IS.UTF-8 on Solaris and FreeBSD, is_IS.utf8 on Debian - is_IS_locale=$(locale -a | sed -n '/^is_IS\.[uU][tT][fF]-*8$/{ + is_IS_locale=$(locale -a 2>/dev/null | + sed -n '/^is_IS\.[uU][tT][fF]-*8$/{ p q }') # is_IS.ISO8859-1 on Solaris and FreeBSD, is_IS.iso88591 on Debian - is_IS_iso_locale=$(locale -a | sed -n '/^is_IS\.[iI][sS][oO]8859-*1$/{ + is_IS_iso_locale=$(locale -a 2>/dev/null | + sed -n '/^is_IS\.[iI][sS][oO]8859-*1$/{ p q }') |