Last modified: 2012-01-16 14:23:56 UTC
Created attachment 9857 [details] A patch that causes the problem. I'm sorry about the few details in the description. I made the changes in the attached patch in my tree (the patch is supposed to address in r107365). I ran "php phpunit.php" and received the following error: ========================== 4) ParserTests::testParserTest with data set #623 ('Space normalisation on autocomment (bug 22784)', '/* __hello__world__ */', '<a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>', 'comment title=[[Main Page]]', '') Space normalisation on autocomment (bug 22784) Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ -'<a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>' +'<a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>' ========================== It seems like the strings are the same, but they are reported as different. Other changed tests were reported as failing for the same reason, too. Reedy suggested opening a bug.
$wgLang->getDirMark() ?
pipe the output of parserTests.php to less, that would sometime reveal unwritablel characters In this case there is a <U+200E> char between </a> and <span -<a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span> +<a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><U+200E><span dir="auto"><span class="autocomment">__hello__world__</span></span>
Cheers, that makes sense U+200E is a LTR mark...