Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3473
CJKsearchFix.txt
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
•
bzimport
Nov 21 2014, 9:30 PM
2014-11-21 21:30:16 (UTC+0)
Size
824 B
Referenced Files
None
Subscribers
None
CJKsearchFix.txt
View Options
Index: languages/classes/LanguageZh_hans.php
===================================================================
--- languages/classes/LanguageZh_hans.php (revision 51629)
+++ languages/classes/LanguageZh_hans.php (working copy)
@@ -9,16 +9,17 @@
# need to fold cases and convert to hex
# we also separate characters as "words"
if( function_exists( 'mb_strtolower' ) ) {
- return preg_replace(
+ $tmp = preg_replace(
"/([\\xc0-\\xff][\\x80-\\xbf]*)/e",
"' U8' . bin2hex( \"$1\" )",
mb_strtolower( $string ) );
} else {
list( , $wikiLowerChars ) = Language::getCaseMaps();
- return preg_replace(
+ $tmp = preg_replace(
"/([\\xc0-\\xff][\\x80-\\xbf]*)/e",
"' U8' . bin2hex( strtr( \"\$1\", \$wikiLowerChars ) )",
$string );
}
+ return "\"$tmp\""; #For bug 8445
}
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3040
Default Alt Text
CJKsearchFix.txt (824 B)
Attached To
Mode
T10445: Multiple search terms are not enforced properly for Chinese
Attached
Detach File
Event Timeline
Log In to Comment