From 81fc8c6bdea80ea4abf6ed636f88bf5e93b26420 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristoffer=20Sjo=CC=88berg?= Date: Wed, 28 Dec 2011 15:14:31 +0100 Subject: [PATCH] Fix utf8 encoding error by changing the Python parameter to a bytes() object (python3 regression). --- controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- 2.30.2