zsh-workers
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: zsh-workers@zsh.org
Subject: PATCH: Test for print -v fix
Date: Sat,  8 Aug 2020 00:29:43 +0200	[thread overview]
Message-ID: <20200807222943.918-1-mikachu@gmail.com> (raw)
In-Reply-To: <F686C9D5-2D78-48D5-8C37-EFE180E8E823@kba.biglobe.ne.jp>

---
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



  reply	other threads:[~2020-08-07 22:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-20 19:03 print -v with multibyte characters zsugabubus
2020-02-20 22:58 ` Mikael Magnusson
2020-08-05 16:13   ` Mikael Magnusson
2020-08-06  6:51     ` Daniel Shahaf
2020-08-07 10:10     ` Jun T
2020-08-07 22:29       ` Mikael Magnusson [this message]
2020-08-11  4:34         ` PATCH: Test for print -v fix Jun T
2020-08-12  9:45           ` Mikael Magnusson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200807222943.918-1-mikachu@gmail.com \
    --to=mikachu@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).