From 7b6afb1996ffe8d3b0f80b6140768fc01c2331d2 Mon Sep 17 00:00:00 2001 From: Platonides Date: Fri, 8 Oct 2010 22:51:03 +0000 Subject: [PATCH] =?utf8?q?Change=20the=20FIXME=20to=20the=20other=20way.?= =?utf8?q?=20The=20issue=20is,=20php=20strtolower()=20calls=20tolower(3),?= =?utf8?q?=20which=20is=20locale=20sensitive.=20Eg.=20LC=5FALL=3D'pt=5FBR.?= =?utf8?q?ISO-8859-1'=20php=20-r'echo=20strtolower("=C3=89=C3=81=C3=87?= =?utf8?q?=C3=9A=C3=8D");'?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Adding a call to setlocale(LC_ALL,'C'); in Setup.php may be a good idea. --- includes/parser/Parser.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 5e8a5c2d7b..c9bc05c07d 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -3895,9 +3895,10 @@ class Parser { 'noninitial' ); } - # HTML names must be case-insensitively unique (bug 10721). FIXME: - # Does this apply to Unicode characters? Because we aren't - # handling those here. + # HTML names must be case-insensitively unique (bug 10721). + # This does not apply to Unicode characters per + # http://dev.w3.org/html5/spec/infrastructure.html#case-sensitivity-and-string-comparison + # FIXME: We may be changing them depending on the current locale. $arrayKey = strtolower( $safeHeadline ); if ( $legacyHeadline === false ) { $legacyArrayKey = false; -- 2.20.1