X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 	tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <20090513193816.GA7650@calimero.vinschen.de>
References: <20090512165404.GW21324@calimero.vinschen.de> 	 <416096c60905120956n5521929bm69586f5e6325a994@mail.gmail.com> 	 <20090512173153.GY21324@calimero.vinschen.de> 	 <416096c60905131204r473ac1d3t4c811f7f0a4cb81f@mail.gmail.com> 	 <20090513193816.GA7650@calimero.vinschen.de>
Date: Wed, 13 May 2009 20:55:10 +0100
Message-ID: <416096c60905131255p3715e047i722e4d6d0f523ae8@mail.gmail.com>
Subject: Re: [Fwd: [1.7] wcwidth failing configure tests]
From: Andy Koppe <andy.koppe@gmail.com>
To: newlib@sourceware.org, cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

> How should that work? =C2=A0The first half of the surrogate pair has not
> enough information to decide that. =C2=A0For instance, take the ranges
> 0x10A01, 0x10A03 }, { 0x10A05, 0x10A06 }. =C2=A0The information about the=
 low
> 10 bits of the Unicode value is in the second half of the pair. =C2=A0From
> the first half you don't know if the char is perhaps the 0x10A04 value
> or one of the other. =C2=A0So you need both halves to make a decision.

You're right. I'd somehow overlooked the end of the combining[] array.

Andy

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

