r86162 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86161‎ | r86162 | r86163 >
Date:00:23, 16 April 2011
Author:reedy
Status:ok
Tags:
Comment:
Revert r85536 pending a better fix
Modified paths:
  • /trunk/phase3/languages/Language.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/Language.php
@@ -1859,7 +1859,8 @@
18601860 return $s;
18611861 }
18621862
1863 - $isutf8 = ( $s == iconv("UTF-8","UTF-8//IGNORE", $s));
 1863+ $isutf8 = preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|' .
 1864+ '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})+$/', $s );
18641865 if ( $isutf8 ) {
18651866 return $s;
18661867 }
Property changes on: trunk/phase3/languages/Language.php
___________________________________________________________________
Deleted: svn:mergeinfo
18671868 Reverse-merged /branches/sqlite/languages/Language.php:r58211-58321
18681869 Reverse-merged /branches/new-installer/phase3/languages/Language.php:r43664-66004
18691870 Reverse-merged /branches/wmf/1.17wmf1/languages/Language.php:r84259
18701871 Reverse-merged /branches/REL1_15/phase3/languages/Language.php:r51646

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r85536Merge from 1.17wmf1: r84259demon13:50, 6 April 2011

Status & tagging log