[Libreoffice-bugs] [Bug 125496] SDI file with greek letters does not work
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Fri Jun 21 15:02:23 UTC 2019
https://bugs.documentfoundation.org/show_bug.cgi?id=125496
--- Comment #7 from Julien Nabet <serval2412 at yahoo.fr> ---
UI comes from "createautomarkdialog.ui"
This file is used by sw/source/ui/index/cnttab.cxx
Search "encod" here gives 3 locations:
3815 void SwEntryBrowseBox::ReadEntries(SvStream& rInStr)
3816 {
3817 AutoMarkEntry* pToInsert = nullptr;
3818 rtl_TextEncoding eTEnc = osl_getThreadTextEncoding();
3819 while (rInStr.good())
3866 void SwEntryBrowseBox::WriteEntries(SvStream& rOutStr)
3867 {
3868 //check if the current controller is modified
...
3878 rtl_TextEncoding eTEnc = osl_getThreadTextEncoding();
3879 for(std::unique_ptr<AutoMarkEntry> & rpEntry : m_Entries)
3956 IMPL_LINK_NOARG(SwAutoMarkDlg_Impl, OkHdl, Button*, void)
3957 {
3958 bool bError = false;
3959 if(m_pEntriesBB->IsModified() || bCreateMode)
3960 {
3961 SfxMedium aMed( sAutoMarkURL,
3962 bCreateMode ? StreamMode::WRITE
3963 : StreamMode::WRITE|
StreamMode::TRUNC );
3964 SvStream* pStrm = aMed.GetOutStream();
3965 pStrm->SetStreamCharSet( RTL_TEXTENCODING_MS_1253 );
So it seems it doesn't try to detect the encoding of the file.
Also, line 3965 seems weird to me, why fixed encoding RTL_TEXTENCODING_MS_1253
?
--
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/20190621/5a2fa05b/attachment.html>
More information about the Libreoffice-bugs
mailing list