[Libreoffice-bugs] [Bug 75263] FILESAVE XLS Cyrillic (Russian) characters inserted by macro appear as question marks

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Oct 5 16:26:04 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=75263

--- Comment #13 from Mike Kaganski <mikekaganski at hotmail.com> ---
LibreOffice reads PROJECTCODEPAGE record [1] (in this file it's Windows-1251)
in VbaProject::readVbaModules (oox/source/ole/vbaproject.cxx). It uses the
codepage to decode the strings in the project, but then forgets the value, and
when writing, uses hard-coded Win-1252, naturally turning everything not
representable in that codepage into question marks.

Code pointer: writePROJECTCODEPAGE in oox/source/ole/vbaexport.cxx.

[1] [MS-OVBA] sect. 2.3.4.2.1.4
https://docs.microsoft.com/en-us/openspecs/office_file_formats/ms-ovba/575462ba-bf67-4190-9fac-c275523c75fc

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201005/c22df3b8/attachment.htm>


More information about the Libreoffice-bugs mailing list