[PATCH v2 evemu 2/2] python: encode/decode C strings for Python 3

Benjamin Tissoires benjamin.tissoires at gmail.com
Thu Nov 10 09:39:08 UTC 2016


On Thu, Nov 10, 2016 at 1:35 AM, Peter Hutterer
<peter.hutterer at who-t.net> wrote:
> Python3 uses unicode and byte arrays need to be explicitly encoded/decoded in
> Python3 to avoid the ctypes TypeError when converting between python strings
> and C strings.
>
> https://bugs.freedesktop.org/show_bug.cgi?id=97458
>
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
> ---

Both patches pushed to master (1.5 + 2):
   a3ed500..4850239  master -> master

> Changes to v1:
> - more commit message goodness
> - split out the "is None" null pointer checks from v1 into a separate patch
> - rebased on top of that patch

Thanks!

Benjamin


More information about the Input-tools mailing list