]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - tests/intl.tests
Bash-4.4 distribution sources and documentation
[thirdparty/bash.git] / tests / intl.tests
index 3844fa8787ebe7a8ba0053445380e722fe65cfb1..5c15b47e83441e437180d091431f6fb8829144a0 100644 (file)
@@ -35,8 +35,10 @@ esac
 set a b
 
 printf '%s\n' "$*"
-# squeeze out blanks to avoid white space differences in od implementations
-printf '%s' "$*" | od -b | ( IFS=$' \t\n' ;  while read line; do echo $line; done; )
+
+. ./test-glue-functions
+
+printf '%s' "$*" | od -b | _intl_normalize_spaces
 
 # display differences make this problematic
 ${THIS_SH} ./intl1.sub
@@ -44,6 +46,9 @@ ${THIS_SH} ./intl1.sub
 # this tests both international handling in printf and temporary environments
 ${THIS_SH} ./intl2.sub
 
+# test splitting on characters instead of bytes
+${THIS_SH} ./intl3.sub
+
 ${THIS_SH} ./unicode1.sub 2>/dev/null
 ${THIS_SH} ./unicode2.sub