From ea64d2fd4bddf4bf6cfa2d0abf5c407f6d7f1542 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Sat, 8 Aug 2020 00:27:58 +0200 Subject: 47302: Test for print -v fix --- ChangeLog | 3 +++ Test/B03print.ztst | 1 + Test/D07multibyte.ztst | 9 +++++++++ 3 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index abc051765..5a9ef3213 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,9 @@ * Jun-ichi Takimoto: 47301: Src/builtin.c: Fix print -v metafication + * 47302: Test/B03print.ztst, Test/D07multibyte.ztst: Test for + print -v fix + 2020-10-18 Roman Perepelitsa * 47476: Src/Modules/files.c: Fix a race condition in zf_mkdir -p diff --git a/Test/B03print.ztst b/Test/B03print.ztst index 0ef3743ce..563423934 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 989f45183..9375dcda4 100644 --- a/Test/D07multibyte.ztst +++ b/Test/D07multibyte.ztst @@ -570,6 +570,15 @@ 0:printf %q and quotestring and general metafy / token madness >你你 + typeset 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 -- cgit 1.4.1