diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-06-08 23:54:56 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-06-08 23:54:56 +0000 |
| commit | 6798f163cf317e89a65d38377fb3dc1475b37ae6 (patch) | |
| tree | 9a57b3b429c757b8b61c0e0ad5b408e25a02d288 /lib/python/enigma_python.i | |
| parent | d49bab30f39756b729d53a00466f426a047437b1 (diff) | |
| download | enigma2-6798f163cf317e89a65d38377fb3dc1475b37ae6.tar.gz enigma2-6798f163cf317e89a65d38377fb3dc1475b37ae6.zip | |
make umlauts working in class Input
Diffstat (limited to 'lib/python/enigma_python.i')
| -rw-r--r-- | lib/python/enigma_python.i | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/python/enigma_python.i b/lib/python/enigma_python.i index 8582de86..ad412293 100644 --- a/lib/python/enigma_python.i +++ b/lib/python/enigma_python.i @@ -92,8 +92,10 @@ is usually caused by not marking PSignals as immutable. extern void runMainloop(); extern void quitMainloop(int exit_code); extern eApplication *getApplication(); - extern int getPrevAsciiCode(); +extern int isUTF8(const std::string &); +extern std::string convertUTF8DVB(const std::string &, int); +extern std::string convertDVBUTF8(const unsigned char *data, int len, int table, int tsidonid); %} %feature("ref") iObject "$this->AddRef(); /* eDebug(\"AddRef (%s:%d)!\", __FILE__, __LINE__); */ " @@ -258,8 +260,17 @@ int getPrevAsciiCode(); void runMainloop(); void quitMainloop(int exit_code); eApplication *getApplication(); - +int isUTF8(const std::string &); +std::string convertUTF8DVB(const std::string &, int); +std::string convertDVBUTF8(std::string text, int table); %{ + +std::string convertDVBUTF8(std::string text, int table) +{ + int len = text.length(); + return convertDVBUTF8(len?text.c_str():"", len, table, 0); +} + RESULT SwigFromPython(ePtr<gPixmap> &result, PyObject *obj) { ePtr<gPixmap> *res; |
