From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7618 invoked by alias); 23 Oct 2016 18:59:19 -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: 39716 Received: (qmail 19663 invoked from network); 23 Oct 2016 18:59:19 -0000 X-Qmail-Scanner-Diagnostics: from know-smtprelay-omc-6.server.virginmedia.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(80.0.253.70):SA:0(-0.0/5.0):. Processed in 0.508117 secs); 23 Oct 2016 18:59:19 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: p.w.stephenson@ntlworld.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _smtprelay.virginmedia.com designates 80.0.253.70 as permitted sender) X-Originating-IP: [86.21.219.59] X-Spam: 0 X-Authority: v=2.1 cv=cLcdyQqN c=1 sm=1 tr=0 a=utowdAHh8RITBM/6U1BPxA==:117 a=utowdAHh8RITBM/6U1BPxA==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=GT6KDZc4gSHpSs0hHzQA:9 a=CjuIK1q_8ugA:10 a=z9dJwno5l634igLiVhy-:22 Date: Sun, 23 Oct 2016 19:59:08 +0100 From: Peter Stephenson To: Zsh hackers list Subject: Re: zsh/complist colours improperly handle multibyte characters Message-ID: <20161023195908.40edc8cf@ntlworld.com> In-Reply-To: <161023105652.ZM3309@torch.brasslantern.com> References: <161020210735.ZM6446@torch.brasslantern.com> <20161023184641.4549e10a@ntlworld.com> <161023105652.ZM3309@torch.brasslantern.com> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.28; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sun, 23 Oct 2016 10:56:52 -0700 Bart Schaefer wrote: > [This is off-list, did you mean to?] No, that was just stuipdity. > On Oct 23, 6:46pm, Peter Stephenson wrote: > } Subject: Re: zsh/complist colours improperly handle multibyte characters > } > } On Thu, 20 Oct 2016 21:07:35 -0700 > } Bart Schaefer wrote: > } > Stepping through with gdb for the vertical-bar pattern, I get: > } > > } > pattern.c:1530: BUG: - missing from numeric glob > } > } Sounds like they're being treated as pattern characters when that's not > } what you want? > > No, sorry, this is a UTF-8 full-line-height vertical-bar, not ascii pipe. > It's incorrectly interpreted as a left angle bracket pattern character, > if that BUG message is accurate. Ah, then there's a good chance this is indeed a problem with zshtokenize. We probably ought at least to pass through metafied characters. I don't know that fits this particular case, but it's the obvious problem. pws diff --git a/Src/glob.c b/Src/glob.c index a845c5f..0442bbf 100644 --- a/Src/glob.c +++ b/Src/glob.c @@ -3499,6 +3499,10 @@ zshtokenize(char *s, int flags) for (; *s; s++) { cont: switch (*s) { + case Meta: + /* skip Meta as well as following character */ + s++; + break; case Bnull: case Bnullkeep: case '\\':