Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100578 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82183 invoked from network); 14 Sep 2017 12:03:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Sep 2017 12:03:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.177 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.128.177 mail-wr0-f177.google.com Received: from [209.85.128.177] ([209.85.128.177:49837] helo=mail-wr0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AB/1B-19300-5FF6AB95 for ; Thu, 14 Sep 2017 08:03:01 -0400 Received: by mail-wr0-f177.google.com with SMTP id u96so119036wrb.6 for ; Thu, 14 Sep 2017 05:03:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:from:message-id; bh=LMrvkDwURzEgedzJXrMtwlyHBzTm99T0Gy77Cd6fqHE=; b=QcGpZqrFkNY3ddCAjGB9aaPfON6GwGoAaOOYV1Uqy/AgCllmDzlDLPvWEQYzLkBEAO y+Mdlr5Ugavpx0Osie3rse2MgHgRPY6WXZSzJXK+iEmxNMQWKcw8SvWTBd46ZGYqKjO0 13ZP9DFamIumNxT8r/VX3GeNhTa9T5S6fieX06sdB+fPdo1zeckDw15AA/lFSBnSP54d LvZY79dYPzymC3ZPOV8LD6LL/2YYbgugfC8ArQoU05bYpfRq9qIvU7RSIPOL9T+cRgEp QNIAVTzeKQO/WbeNt7dggCsRYSDMUPjIA2B45AvseqpKFIN9Kp7Bsr/h9DoRtWetamR4 R8mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:from:message-id; bh=LMrvkDwURzEgedzJXrMtwlyHBzTm99T0Gy77Cd6fqHE=; b=CkqC4OoqAF7XKwDSpwicKUHtsvcQNK5MUOhJHPFBS5iOGJG7QdvccFXo0oRraujqQH vt7BJKvXHXUqrnHhoyOJvPmGFcfzneVyaFOmaq/bHIjkP42huOxiau0AJfZSpoI4oSeX kvktz2HuxoWmVZLHI65lECBAuBEWD+/IxuFNpN8lBBqWBP94v3nWlN8Q46MnOWQ06wnW sHu/BgOY89UGGSLu+z/Gmr5JhepUqQpWlG6D63723VP42EfinZoAyPCOV+apdmjNENxt jkgvWPatZzttrtDwIrK0rDffSMBLs7zCRw+ImjpzDzu8BOaOlQaGUJvhAFsrL4TdsSB/ InFg== X-Gm-Message-State: AHPjjUjMVKBYUAqsYPlnFG4Apupy1T4wD9owy/H43gvct+60HiwegDtp ph/szYs9UW6pOSPXqKw= X-Google-Smtp-Source: ADKCNb5HIWGz8VbjwDlII30ttRmnDfZReO1vtYWNW0X4dST2KG9uO8guhYpnxN2YHKHH8GNmsDe2NA== X-Received: by 10.223.157.142 with SMTP id p14mr17450506wre.104.1505390578019; Thu, 14 Sep 2017 05:02:58 -0700 (PDT) Received: from [10.176.103.133] (92.40.249.139.threembb.co.uk. [92.40.249.139]) by smtp.gmail.com with ESMTPSA id p46sm17272530wrb.46.2017.09.14.05.02.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Sep 2017 05:02:56 -0700 (PDT) Date: Thu, 14 Sep 2017 13:02:53 +0100 User-Agent: K-9 Mail for Android In-Reply-To: <73.F9.19300.7AA4AB95@pb1.pair.com> References: <3D.0C.10715.383F8B95@pb1.pair.com> <09.43.19300.8E659B95@pb1.pair.com> <73.F9.19300.7AA4AB95@pb1.pair.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: internals@lists.php.net,Tony Marston Message-ID: Subject: Re: [PHP-DEV] Deprecate and remove case-insensitive constants? From: rowan.collins@gmail.com (Rowan Collins) On 14 September 2017 10:23:48 BST, Tony Marston >Would this problem disappear by using UTF8 instead of the Turkish >character=20 >set? If so then ten no other solution would be required=2E No, the problem has nothing to do with character sets, but with the actual= alphabet that humans in Turkey use, which doesn't follow the same rules as= the alphabet that American humans use=2E Unicode (the standard, not the character set or any of its encodings) has = an algorithm / lookup table for "case folding", because "convert everything= to lower case" is not a reliable way to produce case insensitive compariso= ns=2E Using that correctly world presumably solve this particular problem= =2E The bottom line is that case sensitive comparisons are easier than case in= sensitive ones=2E=20 Early programming languages and OSes just ignored the edge cases (or ignor= ed the existence of the world outside the USA altogether), some later ones = decided the whole thing wasn't worth the effort=2E Regards, --=20 Rowan Collins [IMSoP]