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

--- Comment #7 from osnola <alo...@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.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to