summaryrefslogtreecommitdiff
path: root/tests/multibyte-white-space
diff options
context:
space:
mode:
Diffstat (limited to 'tests/multibyte-white-space')
-rwxr-xr-xtests/multibyte-white-space12
1 files changed, 2 insertions, 10 deletions
diff --git a/tests/multibyte-white-space b/tests/multibyte-white-space
index 58166431..bb1bdaf6 100755
--- a/tests/multibyte-white-space
+++ b/tests/multibyte-white-space
@@ -57,18 +57,10 @@ EOF
fail=0
-# Like printf with a single argument.
-# The difference is that while some printf implementations fail to
-# handle \xHH escapes, no awk implementation has that problem.
-hex_printf()
-{
- ${AWK-awk} 'BEGIN { printf "'"$1"'" }' </dev/null
-}
-
for i in $utf8_space_characters; do
- hex_printf "$i\n" | grep -q '^\s$' \
+ hex_printf_ "$i\n" | grep -q '^\s$' \
|| { warn_ "$i FAILED to match \\s"; fail=1; }
- hex_printf "$i\n" | grep -q '\S'
+ hex_printf_ "$i\n" | grep -q '\S'
test $? = 1 \
|| { warn_ "$i vs. \\S FAILED"; fail=1; }
done