Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100626 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16489 invoked from network); 15 Sep 2017 14:25:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Sep 2017 14:25:26 -0000 X-Host-Fingerprint: 62.31.75.76 76.75-31-62.static.virginmediabusiness.co.uk Received: from [62.31.75.76] ([62.31.75.76:1524] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5D/AE-19300-5D2EBB95 for ; Fri, 15 Sep 2017 10:25:25 -0400 Message-ID: <5D.AE.19300.5D2EBB95@pb1.pair.com> To: internals@lists.php.net References: <3D.0C.10715.383F8B95@pb1.pair.com> <20b8b6fa-ec81-eba9-d33b-b54b815e9e5d@lsces.co.uk> <88.FC.19300.2418AB95@pb1.pair.com> <20170914133846.GQ8096@phcomp.co.uk> <1E.C8.19300.EA49BB95@pb1.pair.com> <20170915093457.GI8096@phcomp.co.uk> In-Reply-To: <20170915093457.GI8096@phcomp.co.uk> Date: Fri, 15 Sep 2017 15:25:19 +0100 Lines: 2 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 16.4.3564.1216 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3564.1216 X-Posted-By: 62.31.75.76 Subject: Re: [PHP-DEV] Deprecate and remove case-insensitive constants? From: TonyMarston@hotmail.com ("Tony Marston") "Alain Williams" wrote in message news:20170915093457.GI8096@phcomp.co.uk... > >On Fri, Sep 15, 2017 at 09:51:53AM +0100, Tony Marston wrote: > >> >Iike how you map lower -> upper depends on how you encode characters. >> >> Then use a single UNICODE character set where every character has >> both an upper and lower case representation. Problem solved. > >Not possible - see below. > >> I don't give two hoots what javascript does. > >Many PHP programmers also write Javascript. Avoiding gratuitous >inconsistencies >will help them. > >> UNICODE was supposedly invented to deal with all these problems so >> why doesn't it? Why is it not possible to define an uppercase and >> lowercase variant of the same character? > >I don't think that you understand Unicode. Case mapping is not as simple as >you >seem to think - even in English. For a start there are 3 cases: lower, >upper & >title. It then gets more complicated. I suggest that you read: > >http://unicode.org/faq/casemap_charprop.html I have read that article, and while it says that case switching may not be easy it does not say that it is impossible. While most case mappings work on a one-to-one basis it is possible to specify any one-to-any mappings as well as any additional mappings used in case folding for any exceptions. -- Tony Marston