[Libreoffice-bugs] [Bug 128673] infilter Parameter does not use entered encoding (CP850)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Nov 10 10:52:52 UTC 2019


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

--- Comment #7 from osnola <alonso at loria.fr> ---
The current code is in
core/writerperfect/source/writer/MSWorksImportFilter.cxx, function
MSWorksImportFilter::doImportDocument which tries to open a dialog which asks
the user for the file's encoding. If this fails, libwps is called with no
encoding => libwps/src/lib/DosWord.cpp tried to find a reasonable encoding
based on the file's codepage (but this is only a heuristic).

Notes:
- I suppose that we can use the argument utl::MediaDescriptor to retrieve the
encoding (and if a encoding is found, use it and do not open a dialog) but I am
not sure how to do that. Maybe we can take some inspiration from
core/writerperfect/source/writer/EBookImportFilter.cxx...
- if someone knows how to modify this function, a similar problem will exist in
writerperfect/source/calc/MSWorksCalcImportFilter.cxx, so
MSWorksCalcImportFilter::doImportDocument will have to be modified similarly.

-- 
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/20191110/143642f5/attachment.html>


More information about the Libreoffice-bugs mailing list