* PATCH: multibyte test
@ 2015-06-03 8:48 Peter Stephenson
0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 2015-06-03 8:48 UTC (permalink / raw)
To: Zsh Hackers' List
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-06-03 8:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-03 8:48 PATCH: multibyte test Peter Stephenson
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).