From: Peter Stephenson <p.stephenson@samsung.com>
To: Zsh Hackers' List <zsh-workers@zsh.org>
Subject: PATCH: multibyte test
Date: Wed, 03 Jun 2015 09:48:43 +0100 [thread overview]
Message-ID: <20150603094843.012bc268@pwslap01u.europe.root.pri> (raw)
Extra multibyte test that tab expansion counts widths properly.
It uses the double-width Latin characters, in case you can't see them.
This stops me from having to learn Japanese.
It's working here --- and this machine's a few years old --- but this
might be the sort of place we'll see oddities.
pws
diff --git a/Test/D07multibyte.ztst b/Test/D07multibyte.ztst
index 33e76be..c9ecb78 100644
--- a/Test/D07multibyte.ztst
+++ b/Test/D07multibyte.ztst
@@ -475,3 +475,12 @@
. ./test_bad_param)
127:Invalid parameter name with following tokenized input
?./test_bad_param:1: command not found: $\M-i#
+
+ lines=$'one\tZSH\tthree\nfour\tfive\tsix'
+ print -X8 -r -- $lines
+0:Tab expansion with extra-wide characters
+>one ZSH three
+>four five six
+# This doesn't look aligned in my editor because actually the characters
+# aren't quite double width, but the arithmetic is correct.
+# It appears just to be an effect of the font.
reply other threads:[~2015-06-03 8:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20150603094843.012bc268@pwslap01u.europe.root.pri \
--to=p.stephenson@samsung.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).