Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: Test for print -v fix



---
This seems to work for me, thanks! Here's a test for it.

 Test/B03print.ztst     | 1 +
 Test/D07multibyte.ztst | 9 +++++++++
 2 files changed, 10 insertions(+)

diff --git a/Test/B03print.ztst b/Test/B03print.ztst
index 0ef3743ce3..5634239346 100644
--- a/Test/B03print.ztst
+++ b/Test/B03print.ztst
@@ -4,6 +4,7 @@
 #  Use of print -p to output to coprocess	A01grammar
 #  Prompt expansion with print -P		D01prompt
 #  -l, -r, -R and -n indirectly tested in various places
+#  multibyte tests in D07multibyte
 
 # Not yet tested:
 #  echo and pushln
diff --git a/Test/D07multibyte.ztst b/Test/D07multibyte.ztst
index 989f451837..345e061d94 100644
--- a/Test/D07multibyte.ztst
+++ b/Test/D07multibyte.ztst
@@ -570,6 +570,15 @@
 0:printf %q and quotestring and general metafy / token madness
 >你你
 
+ typeset -a foo
+ print -v foo 'ÖÓŐ'
+ echo $foo
+ printf -v foo 'ÖÓŐ'
+ echo $foo
+0:print and printf into a variable with multibyte text
+>ÖÓŐ
+>ÖÓŐ
+
 # This test is kept last as it introduces an additional
 # dependency on the system regex library.
   if zmodload zsh/regex 2>/dev/null; then
-- 
2.15.1





Messages sorted by: Reverse Date, Date, Thread, Author