Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61154 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14213 invoked from network); 12 Jul 2012 05:17:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jul 2012 05:17:47 -0000 X-Host-Fingerprint: 89.117.239.132 132.239.117.89.static.mezon.lt Received: from [89.117.239.132] ([89.117.239.132:3562] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BA/12-32936-9FD5EFF4 for ; Thu, 12 Jul 2012 01:17:46 -0400 Message-ID: To: internals@lists.php.net Date: Thu, 12 Jul 2012 08:17:35 +0300 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20120613 Icedove/3.0.11 MIME-Version: 1.0 References: <4FFD11C1.3090007@sugarcrm.com> <1342029955.13569.17.camel@guybrush> <4FFDC10F.6050106@sugarcrm.com> <4FFDDBAD.7070100@sugarcrm.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Posted-By: 89.117.239.132 Subject: Re: [PHP-DEV] Re: bug 18556 - tolower & locales From: tokul@users.sourceforge.net (Tomas Kuliavas) 2012.07.11 23:07, Pierre Joye rašė: > hi, > > On Wed, Jul 11, 2012 at 10:01 PM, Stas Malyshev wrote: >> Hi! >> >>> I'd to go with master only with this patch, not like it is a huge >>> issue either (% wised I mean). >> >> It's a huge issue for people using these locales (PHP is unusable for >> them, as I understand), but how many use those I don't know. > > Right, just like some functions are huge issues for the few people using them. > > If it is not good enough for 5.3, it is not good enough for 5.4. It is not about issues with functions. It is about PHP interpreter operating under assumption that locale sensitive strtolower and strtoupper follow basic US English letter case rules in a-zA-Z range. That's huge mistake for code used in international environment and Mustafa Kemal Atatürk is smiling in his grave every time some programmer hits that problem. You had less complex patch posted on #35050 bug report for the last four years. Code already uses (or used when I was looking at that code) locale insensitive tolower version on Windows. Why you insist on using locale sensitive function on other platforms. -- Tomas