Shift_JIS locale is installed in my machine, but sjis-mb test module
recognizes it, as it is defined as ja_JP.SJIS.

Further more, on Solaris it is defined as ja_JP.PCK.
From 334811b1de99bfe211f8d1a99dde0d47f137e7fe Mon Sep 17 00:00:00 2001
From: Norihiro Tanaka <nori...@kcn.ne.jp>
Date: Fri, 7 Nov 2014 21:08:34 +0900
Subject: [PATCH] grep: check ja_JP.SJIS and ja_JP.PCK for Shift_JIS locale

tests/sjis-mb: check ja_JP.SJIS and ja_JP.PCK for Shift_JIS locale.
---
 tests/sjis-mb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/sjis-mb b/tests/sjis-mb
index 990c770..3b4ed32 100755
--- a/tests/sjis-mb
+++ b/tests/sjis-mb
@@ -40,7 +40,10 @@ test_grep() {
   test $? = 0 && compare exp$k out$k
 }
 
-test "$(get-mb-cur-max $locale)" = 2 || skip_ 'SJIS locale not found'
+for locale in ja_JP.SHIFT_JIS ja_JP.SJIS ja_JP.PCK ''; do
+  test "$(get-mb-cur-max $locale)" = 2 && break
+done
+test "$locale" != '' || skip_ 'SJIS locale not found'
 
 failure_tests=@A
 successful_tests='%%AA @AA @A@@A'
-- 
2.1.3

Reply via email to