Patch #914 2006-03-12 00:08

sethjackson

Bug #6743
Download
914-Bug_6743.patch (596 bytes)
Category
Application::Bugfix
Status
Accepted
Close date
2006-03-13 09:52
Assigned to
 
Index: src/sdk/cbeditor.cpp
===================================================================
--- src/sdk/cbeditor.cpp    (revision 2173)
+++ src/sdk/cbeditor.cpp    (working copy)
@@ -486,6 +486,9 @@
     SetSizer(bs);
     SetAutoLayout(true);
 
+    wxString enc_name = Manager::Get()->GetConfigManager(_T("editor"))->Read(_T("/default_encoding"), wxEmptyString);
+    m_pData->m_encoding = wxFontMapper::GetEncodingFromName(enc_name);
+
     // dynamic events
     Connect( m_ID,  -1, wxEVT_SCI_MARGINCLICK,
                   (wxObjectEventFunction) (wxEventFunction) (wxScintillaEventFunction)
killerbot 2006-03-12 18:35

I will leave this one to Yiannis or Thomas. I don't feel to much at home yet with encoding, to be absolutely sure of what I am doing. ;-)