Patch #3563 2014-04-02 13:09

linikov

Bad encoding of doxygen docs popup when src file is CP1251.
Download
3563-Bad_encoding_o.patch (682 bytes)
Category
Plugin::Bugfix
Status
Open
Close date
 
Assigned to
ollydbg
Index: tokenizer.cpp
===================================================================
--- tokenizer.cpp    (revision 9745)
+++ tokenizer.cpp    (working copy)
@@ -228,7 +228,9 @@
         if (m_Buffer.Length() == 0)
         {
             // could not read as utf-8 encoding, try iso8859-1
-            m_Buffer = wxString(data, wxConvISO8859_1, m_BufferLen + 1); // + 1 => sentinel
+            // And what about other encodings (Cyrillic, Arabic, Greec, etc.)?
+            // Better use local encoding
+            m_Buffer = wxString(data, wxConvLocal, m_BufferLen + 1); // + 1 => sentinel
         }
 #else
         m_Buffer = wxString(data, m_BufferLen + 1); // + 1 => sentinel
ollydbg 2014-04-02 15:08

You use wxConvLocal means use OS(system)'s default encoding?

linikov 2014-04-02 15:44

Yes, exactly.