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>
This commit is contained in:
@ -14,12 +14,14 @@ export GIT_TEXTDOMAINDIR GIT_PO_PATH
|
|||||||
if test_have_prereq GETTEXT && ! test_have_prereq GETTEXT_POISON
|
if test_have_prereq GETTEXT && ! test_have_prereq GETTEXT_POISON
|
||||||
then
|
then
|
||||||
# is_IS.UTF-8 on Solaris and FreeBSD, is_IS.utf8 on Debian
|
# 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
|
p
|
||||||
q
|
q
|
||||||
}')
|
}')
|
||||||
# is_IS.ISO8859-1 on Solaris and FreeBSD, is_IS.iso88591 on Debian
|
# 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
|
p
|
||||||
q
|
q
|
||||||
}')
|
}')
|
||||||
|
Reference in New Issue
Block a user