parserTests.txt shall be opened in text mode.
authorPlatonides <platonides@users.mediawiki.org>
Sat, 13 Feb 2010 13:46:29 +0000 (13:46 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sat, 13 Feb 2010 13:46:29 +0000 (13:46 +0000)
Followup of r62006 which broke parser tests on windows (crlf line endings).

maintenance/parserTests.inc

index ae12c20..8bd1c20 100644 (file)
@@ -1562,7 +1562,7 @@ class TestFileIterator implements Iterator {
                global $IP;
 
                $this->file = $file;
-       $this->fh = fopen($this->file, "r");
+       $this->fh = fopen($this->file, "rt");
         if( !$this->fh ) {
                        wfDie( "Couldn't open file '$file'\n" );
                }