Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100616 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90523 invoked from network); 15 Sep 2017 09:35:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Sep 2017 09:35:02 -0000 Authentication-Results: pb1.pair.com header.from=addw@phcomp.co.uk; sender-id=permerror Authentication-Results: pb1.pair.com smtp.mail=addw@phcomp.co.uk; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain phcomp.co.uk designates 78.32.209.33 as permitted sender) X-PHP-List-Original-Sender: addw@phcomp.co.uk X-Host-Fingerprint: 78.32.209.33 freshmint.phcomp.co.uk Received: from [78.32.209.33] ([78.32.209.33:35274] helo=mint.phcomp.co.uk) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 56/2B-19300-5CE9BB95 for ; Fri, 15 Sep 2017 05:35:01 -0400 Received: from addw by mint.phcomp.co.uk with local (Exim 4.89) (envelope-from ) id 1dsn1V-00013e-Q5 for internals@lists.php.net; Fri, 15 Sep 2017 10:34:57 +0100 Date: Fri, 15 Sep 2017 10:34:57 +0100 To: internals@lists.php.net Message-ID: <20170915093457.GI8096@phcomp.co.uk> Mail-Followup-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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1E.C8.19300.EA49BB95@pb1.pair.com> Organization: Parliament Hill Computers Ltd User-Agent: Mutt/1.5.20 (2009-12-10) Subject: Re: [PHP-DEV] Deprecate and remove case-insensitive constants? From: addw@phcomp.co.uk (Alain Williams) 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 -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include