From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14323 invoked by alias); 26 Mar 2010 20:51:24 -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: 27834 Received: (qmail 5334 invoked from network); 26 Mar 2010 20:51:22 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at ntlworld.com designates 81.103.221.48 as permitted sender) Date: Fri, 26 Mar 2010 20:50:51 +0000 From: Peter Stephenson To: Zsh hackers list Subject: Re: PATCH: count glyphs in multibyte strings Message-ID: <20100326205051.2b41da45@pws-pc> In-Reply-To: <201003260953.o2Q9rwAq007323@news01.csr.com> References: <22950.1269552903@pws-pc> <20100326010259.GA68432@redoubt.spodhuis.org> <201003260953.o2Q9rwAq007323@news01.csr.com> X-Mailer: Claws Mail 3.7.5 (GTK+ 2.18.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Cloudmark-Analysis: v=1.1 cv=ZtHxNT4mZm3rCuM0SmWmgWxeBwJsziC8EqOrwwVkrhA= c=1 sm=0 a=4bXmt9NbuGYA:10 a=DogomfpGjd0A:10 a=IkcTkHD0fZMA:10 a=4UtWO5riAAAA:8 a=FP58Ms26AAAA:8 a=NLZqzBF-AAAA:8 a=YiHsD1qhtRZCt2lotXkA:9 a=0tQVTBejNNSikLsdT34A:7 a=qOKChjNRBr8r3TiEPsgg8aAbVyEA:4 a=QEXdDO2ut3YA:10 a=UEeEGblpyFIA:10 a=Shd8Sdw-9eQA:10 a=_dQi-Dcv4p4A:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 On Fri, 26 Mar 2010 09:53:58 +0000 Peter Stephenson wrote: > Phil Pennock wrote: > > What about -1 being returned from wcwidth() for non-printable > > characters? Looks like this is an existing issue. >=20 > Yes, it would make a mess of the existing code although the new capability > would handle it better. I'm not sure whether the right answer is 1 or 0, > but it's not -1. The code was inconsistent; some places handled unprintable characters as width 0, others as 1, some didn't handle them specially. I'll rationalise them all to 0. CVS is still down at the moment (see notice from https://sourceforge.net/apps/wordpress/sourceforge/ below). CVS outage 2010-03-25 March 25th, 2010=20 Hello folks, Update on the current CVS outage that is affecting projects whose UNIX names start with the letters a, e, h, i, m, o, r, s, w, z. The work being done on this server may take up to two days to resolve. We=E2=80=99re working to resolve this with alacrity and assure max= imum stability and performance. Please bear with us as we work to get this effort completed. Best regards, Daniel Hinojosa =E2=80=93 Sr. Manager Support, SourceForge.net --=20 Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/