Bug 51172

Summary: FILEOPEN of empty CSV file corrupts file
Product: LibreOffice Reporter: Till Crueger <mail>
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: minor    
Priority: medium    
Version: 3.5.2 release   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
Crash report or crash signature: Regression By:

Description Till Crueger 2012-06-17 07:17:10 UTC
When opening an empty CSV file, the file does not get opened correctly. Instead binary data is inserted into the file and also saved on the Harddisk. Here is an example how to reproduce the problem:

> touch empty.csv
> libreoffice empty.csv

Click on "Text CSV"
The import dialog shows random garbage.
Click abort.
> cat empty.csv

The file has been filed with random binary data.
Comment 1 Urmas 2012-06-17 15:29:12 UTC

*** This bug has been marked as a duplicate of bug 46699 ***