From: Brion Vibber Date: Sat, 26 Mar 2005 12:08:51 +0000 (+0000) Subject: * (bug 1042) Fix UTF-8 case conversion for PHP 4.1.x and 4.2.x with mbstring extension X-Git-Tag: 1.5.0alpha1~517 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=1926e2a2dd7596f1cd9c331b14c753f926698c2e;p=lhc%2Fweb%2Fwiklou.git * (bug 1042) Fix UTF-8 case conversion for PHP 4.1.x and 4.2.x with mbstring extension The initialization code for the fallback conversion was checking for the presence of the wrong function. mb_strtoupper and mb_strtolower are only present starting in 4.3.0, so the case arrays were not being loaded when the extension was detected as present and the fallback converter failed. --- diff --git a/languages/LanguageUtf8.php b/languages/LanguageUtf8.php index 8e8eaba499..acdd886a38 100644 --- a/languages/LanguageUtf8.php +++ b/languages/LanguageUtf8.php @@ -11,7 +11,7 @@ global $wgDBname, $wgMemc; $wgInputEncoding = "UTF-8"; $wgOutputEncoding = "UTF-8"; -if (function_exists('mb_internal_encoding')) { +if( function_exists( 'mb_strtoupper' ) ) { mb_internal_encoding('UTF-8'); } else { # Hack our own case conversion routines