]> sigrok.org Git - libsigrokdecode.git/commitdiff
Fix utf8 encoding error by changing the Python parameter to a bytes() object (python3...
authorKristoffer Sjöberg <redacted>
Wed, 28 Dec 2011 14:14:31 +0000 (15:14 +0100)
committerKristoffer Sjöberg <redacted>
Wed, 28 Dec 2011 14:14:31 +0000 (15:14 +0100)
controller.c

index 982bceb6b6468b35080fbd60c9f5b95a422c5635..db85c2338a7832e1730da35c5471a56166bf498a 100644 (file)
@@ -386,7 +386,7 @@ int srd_run_decoder(uint64_t timeoffset, uint64_t duration,
        Py_XINCREF(py_instance);
 
        if (!(py_res = PyObject_CallMethod(py_instance, "decode",
-                       "KKs#", timeoffset, duration, inbuf, inbuflen))) {
+                       "KKy#", timeoffset, duration, inbuf, inbuflen))) {
                if (PyErr_Occurred())
                        PyErr_Print(); /* Returns void. */