From: Kevin Israel Date: Sat, 21 Sep 2013 06:55:16 +0000 (-0400) Subject: Remove LanguageEo::checkTitleEncoding() X-Git-Tag: 1.31.0-rc.0~18694 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22brouteur%22%2C%28%24id_rubrique%20?a=commitdiff_plain;h=11d649206e7d5c174181f5ac179dca1a141407c9;p=lhc%2Fweb%2Fwiklou.git Remove LanguageEo::checkTitleEncoding() In 2005, the code to perform the conversion from the Esperanto x-system to Unicode was recognized as problematic and commented out (bug 1512, r10997). Hence this function has done nothing useful in the last eight years. Change-Id: I9f4351c638645024b17a828144bba8575db14195 --- diff --git a/languages/classes/LanguageEo.php b/languages/classes/LanguageEo.php index 39bdfb5259..0e2d8b4acf 100644 --- a/languages/classes/LanguageEo.php +++ b/languages/classes/LanguageEo.php @@ -114,30 +114,6 @@ class LanguageEo extends Language { return strtr( $matches[1], $xu ) . strtr( $matches[2], $xu ); } - /** - * @param $s string - * @return string - */ - function checkTitleEncoding( $s ) { - # Check for X-system backwards-compatibility URLs - $ishigh = preg_match( '/[\x80-\xff]/', $s ); - $isutf = preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|' . - '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})+$/', $s ); - - if ( $ishigh and !$isutf ) { - # Assume Latin1 - $s = utf8_encode( $s ); - } elseif ( preg_match( '/(\xc4[\x88\x89\x9c\x9d\xa4\xa5\xb4\xb5]' . - '|\xc5[\x9c\x9d\xac\xad])/', $s ) - ) { - return $s; - } - - // if( preg_match( '/[cghjsu]x/i', $s ) ) - // return $this->iconv( 'x', 'utf-8', $s ); - return $s; - } - function initEncoding() { global $wgEditEncoding; $wgEditEncoding = 'x';