r82438 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82437‎ | r82438 | r82439 >
Date:07:27, 19 February 2011
Author:maxsem
Status:ok
Tags:
Comment:
Follow-up r76456: more thorough check for UTF-8 support. Now it checks whether PCRE can actually convert from uppercase to lowercase and vice versa.
Modified paths:
  • /trunk/phase3/includes/installer/Installer.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/installer/Installer.php
@@ -725,7 +725,7 @@
726726 return false;
727727 }
728728 wfSuppressWarnings();
729 - $regexd = preg_replace( '/[\x{0400}-\x{04FF}]/u', '', '-АБВГД-' );
 729+ $regexd = preg_replace( '/[\x{0430}-\x{04FF}]/iu', '', '-АБВГД-' );
730730 wfRestoreWarnings();
731731 if ( $regexd != '--' ) {
732732 $this->showMessage( 'config-pcre-no-utf8' );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r76456Added a check for PCRE_UTF8 per report at Support deskmaxsem16:45, 10 November 2010

Status & tagging log