summary refs log tree commit diff
path: root/Test/D07multibyte.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2016-06-03 10:28:03 +0100
committerPeter Stephenson <pws@zsh.org>2016-06-03 10:28:52 +0100
commitdcffad8326878c1a4c539b9b32c6b497f4032e5d (patch)
tree365e2a1311d0b244d7026443edc0b4c10f9ea39e /Test/D07multibyte.ztst
parentf84a5da8c211ca1ee4cc2c656cfae79a598562cb (diff)
downloadzsh-dcffad8326878c1a4c539b9b32c6b497f4032e5d.tar.gz
zsh-dcffad8326878c1a4c539b9b32c6b497f4032e5d.tar.xz
zsh-dcffad8326878c1a4c539b9b32c6b497f4032e5d.zip
38586: Metafication problem with $functions
If treated as a complete associative array or scanned (retrieving
individual values was not affected), it incorrectly unmetafied
the value so multibyte characters got confused.

Add test.
Diffstat (limited to 'Test/D07multibyte.ztst')
-rw-r--r--Test/D07multibyte.ztst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Test/D07multibyte.ztst b/Test/D07multibyte.ztst
index 39ba5ef8b..dedf2417a 100644
--- a/Test/D07multibyte.ztst
+++ b/Test/D07multibyte.ztst
@@ -553,3 +553,12 @@
 0:${(q+)...} with printable multibyte characters
 >ホ
 >'She said "ホ".  I said "You can'\''t '\''ホ'\'' me!'
+
+#  This will silently succeed if zsh/parameter isn't available
+  (zmodload zsh/parameter >/dev/null 2>&1
+  f() {
+    : $(:)
+    "↓"
+  }
+  : $functions)
+0:Multibtye handled of functions parameter