[PATCH] t9129: fix UTF-8 locale detection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Since I don't have en_US.utf8, some tests failed:

  * UTF-8 locale not available, test skipped
  * skip 10: ISO-8859-1 should match UTF-8 in svn
  * skip 11: eucJP should match UTF-8 in svn
  * skip 12: ISO-2022-JP should match UTF-8 in svn

On my system locale -a reports:

   en_US
   en_US.ISO-8859-1
   en_US.UTF-8

Tests available locales against en_US\.(utf|UTF)-?8 regexp.

Signed-off-by: Yann Droneaud <yann@xxxxxxxxxxx>
---
 t/t9129-git-svn-i18n-commitencoding.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/t/t9129-git-svn-i18n-commitencoding.sh b/t/t9129-git-svn-i18n-commitencoding.sh
index b9224bd..00a273b 100755
--- a/t/t9129-git-svn-i18n-commitencoding.sh
+++ b/t/t9129-git-svn-i18n-commitencoding.sh
@@ -69,7 +69,7 @@ do
 	'
 done
 
-if locale -a |grep -q en_US.utf8; then
+if locale -a |grep -qE '^en_US\.(utf|UTF)-?8$'; then
 	test_set_prereq UTF8
 else
 	say "UTF-8 locale not available, test skipped"
-- 
1.6.4.4

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]