diff --git a/Classes/PHPExcel/Reader/CSV.php b/Classes/PHPExcel/Reader/CSV.php index d389c16..ee342ac 100644 --- a/Classes/PHPExcel/Reader/CSV.php +++ b/Classes/PHPExcel/Reader/CSV.php @@ -217,6 +217,9 @@ class PHPExcel_Reader_CSV implements PHPExcel_Reader_IReader } $objPHPExcel->setActiveSheetIndex( $this->_sheetIndex ); + $lineEnding = ini_set('auto_detect_line_endings'); + ini_set('auto_detect_line_endings', true); + // Open file $fileHandle = fopen($pFilename, 'r'); if ($fileHandle === false) { @@ -287,6 +290,8 @@ class PHPExcel_Reader_CSV implements PHPExcel_Reader_IReader $this->_contiguousRow = $currentRow; } + ini_set('auto_detect_line_endings', $lineEnding); + // Return return $objPHPExcel; } // function loadIntoExisting() diff --git a/changelog.txt b/changelog.txt index 71cc902..e2e23ad 100644 --- a/changelog.txt +++ b/changelog.txt @@ -36,6 +36,8 @@ Fixed in SVN: - Bugfix: (MBaker) Work item 15786 - RangeToArray strange array keys - Bugfix: (MBaker) Work item 15762 - INDIRECT() function doesn't work with named ranges - Bugfix: (MBaker) Locale-specific fix to text functions when passing a boolean argument instead of a string +- Bugfix: (MBaker) Work item 16246 - reader/CSV fails on this file + auto_detect_line_endings now set in CSV reader - General: (MBaker) Work item 15405 - Two easy to fix Issues concerning PHPExcel_Token_Stack (l10n/UC) - General: (MBaker) Work item 15461 - Locale file paths not fit for windows