anssi
public text v1 · immutable[?1049h[?1h=[1;58r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[58;1H"test.patch" 25L, 822C[1;1H[32mdiff --git a/xbmc/lib/libPython/xbmcmodule/PythonAddon.cpp b/xbmc/lib/libPython/xbmcmodule/PythonAddon.cpp[m
index 2ce46fb..30a942a 100644
[32m--- a/xbmc/lib/libPython/xbmcmodule/PythonAddon.cpp
+++ b/xbmc/lib/libPython/xbmcmodule/PythonAddon.cpp[m
[33m@@ -22,6 +22,7 @@[m
#include "PythonAddon.h"
#include "pyutil.h"
#include "addons/AddonManager.h"
[36m+#include "utils/CharsetConverter.h"[m
#include "GUIDialogAddonSettings.h"
#ifndef __GNUC__
[33m@@ -102,9 +103,10 @@[m[35m namespace PYXBMC[m[14;7H return NULL;
};
[35m- CStdString label = self->pAddon->GetString(id);[m
[36m+ CStdStringW label;
+ g_charsetConverter.utf8ToW(self->pAddon->GetString(id), label);[m
[35m- return PyUnicode_DecodeUTF8(label.c_str(), label.size(), "replace");[m
[36m+ return Py_BuildValue((char*)"u", label.c_str());[m
}[25;5H PyDoc_STRVAR(getSetting__doc__,
[1m[34m~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [41;1H~ [42;1H~ [43;1H~ [44;1H~ [45;1H~ [46;1H~ [47;1H~ [48;1H~ [49;1H~ [50;1H~ [51;1H~ [52;1H~ [53;1H~ [54;1H~ [55;1H~ [56;1H~ [57;1H~ [m[58;182H1,1[10CKaik[1;1H[?12l[?25h[?25l[58;1HKomento :quit<Enter> lopettaa Vimin[58;182H[K[58;182H1,1[10CKaik[1;1H[?12l[?25h[?25l[58;182H[K[58;182H1,1[10CKaik[1;1H[?12l[?25h[?25l[58;182H2[2;1H[?12l[?25h[?25l[58;182H[K[58;182H2,1[10CKaik[2;1H[?12l[?25h[?25l[58;182H3[3;1H[?12l[?25h[?25l[58;182H[K[58;182H3,1[10CKaik[3;1H[?12l[?25h[?25l[58;182H4[4;1H[?12l[?25h[?25l[58;182H[K[58;182H4,1[10CKaik[4;1H[?12l[?25h[?25l[58;182H5[5;1H[?12l[?25h