Comment 23 for bug 262777

Revision history for this message
In , Momonasmon (momonasmon) wrote :

(In reply to Andras Timar from comment #1)
> This is an old known bug, see
> http://openoffice.org/bugzilla/show_bug.cgi?id=32785
> Your file is in Excel 5.0 (BIFF5) format which is not fully supported.
> Nobody has implemented the CODEPAGE record in BIFF5.
i#32785 is about BIFF5 *export*, while this bug is about BIFF5 *import*. And actually LO imports and honors the CODEPAGE record. The problem is that for this bugdoc it equals to 1252 (Latin I).

There is also additional problem with the FONT record that in BIFF5 stores the charset as well, and it equals to 1 - which corresponds to DEFAULT_CHARSET used in the LOGFONT WinAPI structure, which according to MSDN - "DEFAULT_CHARSET is set to a value based on the current system locale. For example, when the system locale is English (United States), it is set as ANSI_CHARSET." - means there is no way to know the used charset from it. (And the charset stored in the FONT record is preferred by LO over the CODEPAGE one).