From: Mark A. Hershberger Date: Mon, 15 Mar 2010 17:31:29 +0000 (+0000) Subject: off-by-one error: the fullwidth z was not being converted. X-Git-Tag: 1.31.0-rc.0~37442 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=b0e1bc1b1996202615832e15bf649348cf8c2112;p=lhc%2Fweb%2Fwiklou.git off-by-one error: the fullwidth z was not being converted. --- diff --git a/languages/Language.php b/languages/Language.php index 39ee1ce2bc..1b2ede570e 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -1716,7 +1716,7 @@ class Language { */ protected static function convertDoubleWidth( $string ) { $string = preg_replace( '/\xef\xbc([\x80-\xbf])/e', 'chr((ord("$1") & 0x3f) + 0x20)', $string ); - $string = preg_replace( '/\xef\xbd([\x80-\x99])/e', 'chr((ord("$1") & 0x3f) + 0x60)', $string ); + $string = preg_replace( '/\xef\xbd([\x80-\x9a])/e', 'chr((ord("$1") & 0x3f) + 0x60)', $string ); return $string; }