Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48201 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40513 invoked from network); 4 May 2010 15:01:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 May 2010 15:01:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=joel.perras@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=joel.perras@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: joel.perras@gmail.com X-Host-Fingerprint: 209.85.212.42 mail-vw0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:40280] helo=mail-vw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9F/45-12067-AA630EB4 for ; Tue, 04 May 2010 11:00:59 -0400 Received: by vws20 with SMTP id 20so2007174vws.29 for ; Tue, 04 May 2010 08:00:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Qif13s9K3lSnDR7j8O/LWpK5hI3qcDltBOHl5wS7kkA=; b=fm/1lG13803ndmtW/qG7XG9GpqEcG9rfPW8RikU6nsf70dpB9W1+bGkOIPsOMUD5GG Ao5Aqo1WnOuD9QI59eZjB7fPBO/bLxSud5iXCRB9CnpCnPrFcJvKZ3WO70YYPVLLSnR3 dKOqzw8OWR+HvPnrcdpCu3Qs+JaI2Dfn1dRDM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=dcfkDiRMQr1/8tfwh7r8wyyFRBawUqEEgGiDaCeCgIlcqVF3HM2KyzHGERNc8iZ6d/ 3n1FDStFZ5WorrrZZBMSd6FdpaCvUNcYhWAtLkFwAh7fpGxLhbukUxMjMo2Rc9JSfJ/A sYq7OjkItJjeYZECfnyuw3gLDxbSD8c//G/Xo= MIME-Version: 1.0 Received: by 10.229.236.16 with SMTP id ki16mr3098916qcb.68.1272985250210; Tue, 04 May 2010 08:00:50 -0700 (PDT) Received: by 10.229.104.202 with HTTP; Tue, 4 May 2010 08:00:49 -0700 (PDT) In-Reply-To: References: Date: Tue, 4 May 2010 11:00:49 -0400 Message-ID: To: Adam Harvey Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Turkish/Azeri locale support From: joel.perras@gmail.com (Joel Perras) +1 for option #2. Jo=C3=ABl. On Sun, Apr 18, 2010 at 11:58 PM, Adam Harvey wrote: > As at least some of you would already be aware, there's a > long-standing issue with using PHP in a Turkish or Azeri locale, > namely that case-insensitive lookups within the Zend engine (method > names, for example) fail on lookups involving upper-case I characters, > since lower-case I in those languages is =C4=B1 instead of i (note the la= ck > of a dot). > > The long term plan for this, per bug #35050 and any number of > duplicates, was to deal with it in PHP 6. Since PHP 6 isn't going to > happen in its original form, I think we're going to need to revisit > how we want to deal with this. There's a patch linked in the bug from > Tomas Kuliavas and Marcus that fixes the problem by simply redefining > zend_tolower() to a simple locale-insensitive ASCII tolower() > function, which does fix the Turkish and Azeri locales. > > The potential breakage from this is that single-byte locales will no > longer get case-insensitive lookups of non-ASCII characters: for > example, somebody using fr_FR.ISO-8859-1 as a locale could no longer > call a method =C3=89() as =C3=A9(). Since it doesn't break anything when = using > multi-byte locales (which have never had case-insensitive lookups > anyway since the Zend Engine uses the single-byte tolower() > internally), my inclination would be to apply the patch on trunk and > document it as a BC issue. > > I've uploaded an updated version of Tomas's patch that applies cleanly > to trunk to http://www.adamharvey.name/patches/35050/zend_operators.c.dif= f > and a phpt file to test the fix to > http://www.adamharvey.name/patches/35050/bug35050.phpt. It's likely > that the test would require massaging before being committed to work > on Windows, but since I don't have a Windows development box readily > available and don't know a thing about how Windows implements locale > support, this would require help from someone familiar with the > platform. > > So: thoughts; concerns; alternate approaches? It would be nice to have > this sorted for PHP.next. > > Thanks, > > Adam > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --=20 I do know everything, just not all at once. It's a virtual memory problem.