* (bug 1042) Fix UTF-8 case conversion for PHP 4.1.x and 4.2.x with mbstring extension
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 26 Mar 2005 12:08:51 +0000 (12:08 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 26 Mar 2005 12:08:51 +0000 (12:08 +0000)
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

index 8e8eaba..acdd886 100644 (file)
@@ -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