From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10033 invoked by alias); 3 Jun 2015 08:48:52 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 35374 Received: (qmail 14884 invoked from network); 3 Jun 2015 08:48:50 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,T_HDRS_LCASE autolearn=ham autolearn_force=no version=3.4.0 X-AuditID: cbfec7f4-f79c56d0000012ee-b9-556ebf6ded7f Date: Wed, 03 Jun 2015 09:48:43 +0100 From: Peter Stephenson To: Zsh Hackers' List Subject: PATCH: multibyte test Message-id: <20150603094843.012bc268@pwslap01u.europe.root.pri> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: quoted-printable X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrFLMWRmVeSWpSXmKPExsVy+t/xy7q5+/NCDV4ctLA42PyQyYHRY9XB D0wBjFFcNimpOZllqUX6dglcGSv/zGItaOao6Nj3kLmB8SRbFyMnh4SAicTcaX+gbDGJC/fW A9lcHEICSxklZjb1MEM4M5gkLvxZwghSJSSwlVHiaE84iM0ioCqxtGEuC4jNJmAoMXXTbKAa Dg4RAW2J9o9iIGFhATmJtkOnmUFsXgF7iSk394GV8wvoS1z9+4kJYrG9xMwrZxghagQlfky+ B1bDLKAuMWneImYIW1viybsLrBAnqEvcuLubfQKjwCwkLbOQtMxC0rKAkXkVo2hqaXJBcVJ6 rqFecWJucWleul5yfu4mRkgIftnBuPiY1SFGAQ5GJR7eGRF5oUKsiWXFlbmHGCU4mJVEeE12 A4V4UxIrq1KL8uOLSnNSiw8xSnOwKInzzt31PkRIID2xJDU7NbUgtQgmy8TBKdXAuDGP48rd 5X+/Tyzg231TrTE4qzLTR+/ZZ+lblUeY1n+blDxx6q+Z8937rjCFd8TeeNo65eDUhGkPo6Ot fV3CV323DBDatHm53aYySdbLmkl7eWf+iGff/mXV8dTQjmUzfjP9f7P2zgPZ4xm6dhxbmg33 dpb6P/Xbnrq/7hsTZ+CJqwqKewXVdJRYijMSDbWYi4oTATV2dLg9AgAA 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=3D$'one\t=EF=BC=BA=EF=BC=B3=EF=BC=A8\tthree\nfour\tfive\tsix' + print -X8 -r -- $lines +0:Tab expansion with extra-wide characters +>one =EF=BC=BA=EF=BC=B3=EF=BC=A8 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.