From: Kristoffer Sjöberg Date: Wed, 28 Dec 2011 14:14:31 +0000 (+0100) Subject: Fix utf8 encoding error by changing the Python parameter to a bytes() object (python3... X-Git-Tag: libsigrokdecode-0.1.0~232 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=81fc8c6bdea80ea4abf6ed636f88bf5e93b26420;p=libsigrokdecode.git Fix utf8 encoding error by changing the Python parameter to a bytes() object (python3 regression). --- diff --git a/controller.c b/controller.c index 982bceb..db85c23 100644 --- a/controller.c +++ b/controller.c @@ -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. */