Apache OpenOffice (AOO) Bugzilla – Issue 64867
Calc corrupts blank csv files on import
Last modified: 2013-08-07 15:31:14 UTC
Whenever you open a blank .csv document with OpenOffice, it outputs 1536 bytes of excel header to the file.
confirmed with 680_m164 on WinXP Pro SP2
could not reproduce. Please describe the way to reproduce it, otherwise I've to close it as worksforme. Frank
(In response to fst:) To reproduce the error on a Windows computer: - Right click in a folder listing and select "New > Text Document". - Name the file using a .csv extension. - Open the file with Calc. - Click either "OK" or "Cancel" in the Filter Selection Dialog. The file is now 1536 bytes long and the contents (when opened in Notepad) appear to be the same as Microsoft Excel's header. I am using an AMD-based computer running Windows XP Home with SP2.
Hi Eike, strange thing and I think it's your construction site. Frank
Looks like either an uninitialized memory area or a storage file header.
change target from 2.x to 3.x according to http://wiki.services.openoffice.org/wiki/Target_3x
*** Issue 117176 has been marked as a duplicate of this issue. ***
This actually does not only happen in Calc but also in Writer if Text encoded is selected. I assume that the filter detection tries to open an OLE storage file but instead of only reading the file it creates the storage if the file is empty. The SvStream read in Calc starts already with an actual buffer length of 1536 bytes.. the 3rd "sector" even has a "Root Entry".