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)
History
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. ;-)