diff options
author | Shane Garrett | 2017-08-10 20:55:06 -0400 |
---|---|---|
committer | Nikias Bassen | 2018-12-17 00:58:06 +0100 |
commit | 9c8d7a6c44b0eb22ac77ca6ca5c7c29edd5f685e (patch) | |
tree | 2423ffbee0f44da7dca9f39b532458ef9d8b8db0 /cython | |
parent | ac3be565c413f6964f0188e1c608c1bf8848db29 (diff) | |
download | libplist-9c8d7a6c44b0eb22ac77ca6ca5c7c29edd5f685e.tar.gz libplist-9c8d7a6c44b0eb22ac77ca6ca5c7c29edd5f685e.tar.bz2 |
cython: Fix Node.to_bin() decode
Don't convert the string to UTF-8, just bytes.
Fixes #109.
Diffstat (limited to 'cython')
-rw-r--r-- | cython/plist.pyx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cython/plist.pyx b/cython/plist.pyx index b148687..f6696d6 100644 --- a/cython/plist.pyx +++ b/cython/plist.pyx @@ -116,7 +116,7 @@ cdef class Node: plist_to_bin(self._c_node, &out, &length) try: - return _from_string_and_size(out, length) + return bytes(out[:length]) finally: if out != NULL: libc.stdlib.free(out) |