about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-11-06 20:45:07 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-11-06 20:45:07 +0000
commit1e836045b308d05fa8bd46aef812f73b14d82fb2 (patch)
treee05bb7625d45209c946d4639033a70b7e05ef3b9 /Test
parentea15ee886789a31160f5e87ae466adadbb1e5815 (diff)
downloadzsh-1e836045b308d05fa8bd46aef812f73b14d82fb2.tar.gz
zsh-1e836045b308d05fa8bd46aef812f73b14d82fb2.tar.xz
zsh-1e836045b308d05fa8bd46aef812f73b14d82fb2.zip
24070: some \u fixes in getkeystring()
Diffstat (limited to 'Test')
-rw-r--r--Test/A03quoting.ztst10
-rw-r--r--Test/D07multibyte.ztst10
2 files changed, 20 insertions, 0 deletions
diff --git a/Test/A03quoting.ztst b/Test/A03quoting.ztst
index 54005ebe3..f0f86e0b2 100644
--- a/Test/A03quoting.ztst
+++ b/Test/A03quoting.ztst
@@ -42,3 +42,13 @@
   unsetopt rcquotes
 0:Yes RC_QUOTES with single quotes
 >'
+
+  print '<\u0041>'
+  printf '%s\n' $'<\u0042>'
+  print '<\u0043>'
+  printf '%s\n' $'<\u0044>'
+0:\u in both print and printf
+><A>
+><B>
+><C>
+><D>
diff --git a/Test/D07multibyte.ztst b/Test/D07multibyte.ztst
index 7348bbc2e..993e85b9b 100644
--- a/Test/D07multibyte.ztst
+++ b/Test/D07multibyte.ztst
@@ -384,3 +384,13 @@
   print -r ${(q)foo}
 0:Backslash-quoting of unprintable/invalid characters uses $'...'
 >X$'\300'Y$'\a'Z$'\177'T
+
+# This also isn't strictly multibyte and is here to reduce the
+# likelihood of a "can't do character set conversion" error.
+  testfn() { (LC_ALL=C; print $'\u00e9') }
+  repeat 4 testfn
+1:error handling in Unicode quoting
+?testfn: character not in range
+?testfn: character not in range
+?testfn: character not in range
+?testfn: character not in range