Issue 64867 - Calc corrupts blank csv files on import
Summary: Calc corrupts blank csv files on import
Status: CONFIRMED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 2.0.2
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa
: 117176 (view as issue list)
Depends on:
Blocks:
 
Reported: 2006-04-27 21:04 UTC by gopher292
Modified: 2013-08-07 15:31 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description gopher292 2006-04-27 21:04:40 UTC
Whenever you open a blank .csv document with OpenOffice, it outputs 1536 bytes
of excel header to the file.
Comment 1 lars 2006-04-27 21:50:55 UTC
confirmed with 680_m164 on WinXP Pro SP2
Comment 2 frank 2006-05-15 12:56:32 UTC
could not reproduce. Please describe the way to reproduce it, otherwise I've to
close it as worksforme.

Frank
Comment 3 gopher292 2006-05-15 16:02:25 UTC
(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.
Comment 4 frank 2006-05-17 13:07:34 UTC
Hi Eike,

strange thing and I think it's your construction site.

Frank
Comment 5 ooo 2006-05-17 13:18:37 UTC
Looks like either an uninitialized memory area or a storage file header.
Comment 6 Martin Hollmichel 2007-11-09 16:51:57 UTC
change target from 2.x to 3.x according to
http://wiki.services.openoffice.org/wiki/Target_3x
Comment 7 ooo 2011-03-11 10:51:55 UTC
*** Issue 117176 has been marked as a duplicate of this issue. ***
Comment 8 ooo 2011-03-11 14:39:13 UTC
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".