Bug 77548 - FILEOPEN: Calc adds leading zeros to customised header/footer text in XLS
Summary: FILEOPEN: Calc adds leading zeros to customised header/footer text in XLS
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-16 23:23 UTC by Henrik
Modified: 2014-10-07 11:05 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Spreadsheet with custom footer (30.50 KB, application/vnd.ms-excel)
2014-04-16 23:23 UTC, Henrik
Details

Description Henrik 2014-04-16 23:23:02 UTC
Created attachment 97485 [details]
Spreadsheet with custom footer

When opening an .XLS spreadsheet containing customized text in header or footer in Calc, six zeros are added before each portion of text.

Steps to reproduce:
1. Create spreadsheet in Excel (I'm using Excel for Mac 2011).
2. Add a header or footer with custom text (the problem doesn't occur when using the predefined headers and footers)
3. Save file as XLS (the problem doesn' occur when saving as XLSX)
4. Open file in Calc
5. Go to Format->Page->Header (or Footer)-> Edit
6. Observe the six zeros before the text

Other observations:
-When you've opened the file with Calc and save it, the zeros also appear when opening the document in Excel.

-If you delete the zeros, after having opened the file in Calc and then save it, the zeros doesn't appear when opening in Excel.


I've only tested with Excel for Mac 2011 (14.0.0).
The problem occurs in both 4.2.3 and current master (4.3.0.0.alpha0).
I'm running OS X 10.9.1

I've attached a freshly produced spreadsheet, created in Excel for Mac 2011, with a predefined header and a custom footer. When opened in Excel the text in the footer is "Left" in the left section, "Middle" in the middle section, and "Right" in the right section.
Comment 1 Owen Genat 2014-07-18 13:17:50 UTC
I see the leading zeroes here as well under GNU/Linux using:

- v4.3.0.2 Build ID: 14ed55896fdfcb93ff437b85c4f3e1923d2b1409
- v4.4.0.0.alpha0+ Build ID: 3fdd4f069d5436cf39708004af7fda8175fbc4c2 (2014-07-09)

Confirmed. Status set to NEW. Operating system set to All. Summary edited for clarity.
Comment 2 Owen Genat 2014-07-18 13:30:10 UTC
Note: I have filed bug 81496 against the attachment in this bug as it can cause the current alpha build to crash. The custom page style is not handled well.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.