From 58cad9aecf781b42a0a80fed4f0e91c2822788e1 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Thu, 23 Feb 2017 18:46:56 +0300 Subject: [PATCH] test: Fix UTF8 compliant locale detection --- test/compose/unicode/enabled | 2 +- test/regression/811-double-width-codepoints/enabled | 2 ++ test/unit/codepoint-width/tab-width/enabled | 2 ++ test/unit/codepoint-width/vertical-movement/enabled | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 test/regression/811-double-width-codepoints/enabled create mode 100755 test/unit/codepoint-width/tab-width/enabled create mode 100755 test/unit/codepoint-width/vertical-movement/enabled diff --git a/test/compose/unicode/enabled b/test/compose/unicode/enabled index 8affb9f6..edc44250 100755 --- a/test/compose/unicode/enabled +++ b/test/compose/unicode/enabled @@ -1,2 +1,2 @@ #!/bin/sh -locale | grep LC_CTYPE | grep 'utf8\|UTF-8' > /dev/null +locale | grep LC_CTYPE | grep -qi 'utf-*8' diff --git a/test/regression/811-double-width-codepoints/enabled b/test/regression/811-double-width-codepoints/enabled new file mode 100755 index 00000000..edc44250 --- /dev/null +++ b/test/regression/811-double-width-codepoints/enabled @@ -0,0 +1,2 @@ +#!/bin/sh +locale | grep LC_CTYPE | grep -qi 'utf-*8' diff --git a/test/unit/codepoint-width/tab-width/enabled b/test/unit/codepoint-width/tab-width/enabled new file mode 100755 index 00000000..edc44250 --- /dev/null +++ b/test/unit/codepoint-width/tab-width/enabled @@ -0,0 +1,2 @@ +#!/bin/sh +locale | grep LC_CTYPE | grep -qi 'utf-*8' diff --git a/test/unit/codepoint-width/vertical-movement/enabled b/test/unit/codepoint-width/vertical-movement/enabled new file mode 100755 index 00000000..edc44250 --- /dev/null +++ b/test/unit/codepoint-width/vertical-movement/enabled @@ -0,0 +1,2 @@ +#!/bin/sh +locale | grep LC_CTYPE | grep -qi 'utf-*8'