From 1926e2a2dd7596f1cd9c331b14c753f926698c2e Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 26 Mar 2005 12:08:51 +0000 Subject: [PATCH] * (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. --- languages/LanguageUtf8.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1