diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2007-01-21 22:47:36 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2007-01-21 22:47:36 +0000 |
commit | 553e011320798af097e8de95a1e2a1d2ed6a1a3e (patch) | |
tree | d2e7cd070f33afddb0ce84129e61b4f3034bceb4 /Test/B03print.ztst | |
parent | f3bf48149a2e86faf35db529d864edd904b52fb4 (diff) | |
download | zsh-553e011320798af097e8de95a1e2a1d2ed6a1a3e.tar.gz zsh-553e011320798af097e8de95a1e2a1d2ed6a1a3e.tar.xz zsh-553e011320798af097e8de95a1e2a1d2ed6a1a3e.zip |
23118: improve sorting to make it work with locales
Diffstat (limited to 'Test/B03print.ztst')
-rw-r--r-- | Test/B03print.ztst | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Test/B03print.ztst b/Test/B03print.ztst index e36e55caa..c3ba42b18 100644 --- a/Test/B03print.ztst +++ b/Test/B03print.ztst @@ -263,3 +263,20 @@ printf '%b\n' '\0123' 0:printf handles \0... octal escapes in replacement text >S + + print -lO $'a' $'a\0' $'a\0b' $'a\0b\0' $'a\0b\0a' $'a\0b\0b' $'a\0c' | + while read -r line; do + for (( i = 1; i <= ${#line}; i++ )); do + foo=$line[i] + printf "%02x" $(( #foo )) + done + print + done +0:sorting with embedded nulls +>610063 +>6100620062 +>6100620061 +>61006200 +>610062 +>6100 +>61 |