Skip to content
Snippets Groups Projects
Commit 4f450d14 authored by David Gobbi's avatar David Gobbi
Browse files

For Py3k, return bytes for non-utf8 C++ strings.

If a wrapped C++ method returns std::string or "const char *", the
wrappers try to decode it as utf-8 in order to return a unicode str()
in Python 3.  Originally, this meant that any decoding error led to
a UnicodeDecodeError exception.  After this change, if decoding utf-8
fails, the C++ string is returned as a raw bytes() object.
parent 175a4c43
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment