about summary refs log tree commit diff
path: root/Test/V07pcre.ztst
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2016-01-08 20:42:00 -0800
committerBarton E. Schaefer <schaefer@zsh.org>2016-01-08 20:42:00 -0800
commit5eae5b58b1b99946e14ac8ddc54dc14189a56a6c (patch)
tree40bf9b5f043c3351f160bcc1805e05a85144b860 /Test/V07pcre.ztst
parent424b417063b50173bbd9dcf8a8252b281dcbcd50 (diff)
downloadzsh-5eae5b58b1b99946e14ac8ddc54dc14189a56a6c.tar.gz
zsh-5eae5b58b1b99946e14ac8ddc54dc14189a56a6c.tar.xz
zsh-5eae5b58b1b99946e14ac8ddc54dc14189a56a6c.zip
Jun T.: 37515: multibyte handling as per 35448.
Diffstat (limited to 'Test/V07pcre.ztst')
-rw-r--r--Test/V07pcre.ztst11
1 files changed, 11 insertions, 0 deletions
diff --git a/Test/V07pcre.ztst b/Test/V07pcre.ztst
index ddfd3f5cd..39077564c 100644
--- a/Test/V07pcre.ztst
+++ b/Test/V07pcre.ztst
@@ -37,6 +37,17 @@
 >o→b
 >→
 
+  unset match mend
+  s=$'\u00a0'
+  [[ $s =~ '^.$' ]] && print OK
+  [[ A${s}B =~ .(.). && $match[1] == $s ]] && print OK
+  [[ A${s}${s}B =~ A([^[:ascii:]]*)B && $mend[1] == 3 ]] && print OK
+  unset s
+0:Raw IMETA characters in input string
+>OK
+>OK
+>OK
+
   [[ foo =~ f.+ ]] ; print $?
   [[ foo =~ x.+ ]] ; print $?
   [[ ! foo =~ f.+ ]] ; print $?