id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses 14882,"streams.php, POMO_FileReader, binary read fopen, Windows",cr00nad,nbachiyski,"My system is : Windows PHP 4.3.0 Mysql 4.1 Minimal requiem for Wordpress. In file: wp-includes/pomo/streams.php Class: POMO_FileReader Code: function POMO_FileReader($filename) { parent::POMO_Reader(); $this->_f = fopen($filename, 'r'); } BUG (from PHP.net): On systems which differentiate between binary and text files (i.e. Windows) the file must be opened with 'b' included in fopen() mode parameter. FIX: function POMO_FileReader($filename) { parent::POMO_Reader(); $this->_f = fopen($filename, 'rb'); } If you don't set 'rb' parametr in fopen languages files like mo are not loaded into system. Becouse incorrect read length CLASS: POMO_Reader function strlen($string) { if ($this->is_overloaded) { return mb_strlen($string, 'ascii'); } else { return strlen($string); } } And script stop on this line : FILE: mo.php $originals = $reader->read($originals_lengths_length); if ( $reader->strlen( $originals ) != $originals_lengths_length ) return false; -- cr00nad@gmail.com ",defect (bug),closed,low,3.3,General,3.0.1,normal,fixed,has-patch commit windows 3.3-early,,