fixes r69333 — remove dependency on iconv, use icu or native only
authorMark A. Hershberger <mah@users.mediawiki.org>
Tue, 20 Jul 2010 16:14:09 +0000 (16:14 +0000)
committerMark A. Hershberger <mah@users.mediawiki.org>
Tue, 20 Jul 2010 16:14:09 +0000 (16:14 +0000)
includes/normal/UtfNormal.php

index 621ef9d..0ae47f2 100644 (file)
@@ -73,13 +73,6 @@ class UtfNormal {
         * @return string a clean, shiny, normalized UTF-8 string
         */
        static function cleanUp( $string ) {
-               if( extension_loaded( 'iconv' ) ) {
-                       wfSuppressWarnings();
-                       $ret = iconv( "UTF-8","UTF-8//IGNORE", $string );
-                       wfRestoreWarnings();
-                       return $ret;
-               }
-
                if( NORMALIZE_ICU || NORMALIZE_INTL ) {
                        # We exclude a few chars that ICU would not.
                        $string = preg_replace(