From bfac7f09df6224581dcd66c30e78a440ed22b812 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 3 Jun 2015 09:58:18 +0100 Subject: 35374: tab expansion with double width characters --- ChangeLog | 5 +++++ Test/D07multibyte.ztst | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 9451f88df..0ee19b99d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-06-03 Peter Stephenson + + * 35374: Test/D07multibyte.ztst: add tab expansion test with + double width characters. + 2015-06-02 Peter Stephenson * 35369: Test/A06assign.ztst, Test/E01options.ztst: better diff --git a/Test/D07multibyte.ztst b/Test/D07multibyte.ztst index 33e76bee7..c9ecb78e9 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. -- cgit 1.4.1