From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29159 invoked from network); 15 Sep 2006 15:17:12 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.5 (2006-08-29) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 15 Sep 2006 15:17:12 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 69032 invoked from network); 15 Sep 2006 15:17:06 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 15 Sep 2006 15:17:06 -0000 Received: (qmail 14418 invoked by alias); 15 Sep 2006 15:17:03 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22712 Received: (qmail 14408 invoked from network); 15 Sep 2006 15:17:02 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 15 Sep 2006 15:17:02 -0000 Received: (qmail 68688 invoked from network); 15 Sep 2006 15:17:02 -0000 Received: from vms044pub.verizon.net (206.46.252.44) by a.mx.sunsite.dk with SMTP; 15 Sep 2006 15:16:57 -0000 Received: from torch.brasslantern.com ([71.116.118.106]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J5N00F1D3S67MF0@vms044.mailsrvcs.net> for zsh-workers@sunsite.dk; Fri, 15 Sep 2006 10:16:55 -0500 (CDT) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id k8FFGsFm009806 for ; Fri, 15 Sep 2006 08:16:54 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id k8FFGriZ009805 for zsh-workers@sunsite.dk; Fri, 15 Sep 2006 08:16:53 -0700 Date: Fri, 15 Sep 2006 08:16:53 -0700 From: Bart Schaefer Subject: Re: Core dump with latest CVS In-reply-to: <200609151308.k8FD8IGQ025083@news01.csr.com> To: zsh-workers@sunsite.dk (Zsh hackers list) Message-id: <060915081653.ZM9804@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <20a807210609141402v31714a98wab9b75ff7736327@mail.gmail.com> <200609150957.k8F9v4uq021513@news01.csr.com> <200609151308.k8FD8IGQ025083@news01.csr.com> Comments: In reply to Peter Stephenson "Re: Core dump with latest CVS" (Sep 15, 2:08pm) On Sep 15, 2:08pm, Peter Stephenson wrote: } } I'll commit this pair of changes for now, since it fixes the crash and } mostly does the right thing transparently---ASCII characters behave as } they used to and multibyte characters as they should---but if there are } strong views I can change it. My concern is that "printability" shouldn't have anything to do with it. Programmatically, the expression (( ${#:-X} == 1 && ${#(pl.width..X.)} == width )) should always be true. I could see an argument that ${#(%pl.width.X)} could compute the padding based on printable width, because the presence of % means we're expanding prompt escapes so presumably we want printable values ... but there is a reason that %{ %} has to be placed around non-printing sequences in prompts.