Commit 446594c9 authored by Joseph Weston's avatar Joseph Weston
Browse files

fix string conversion to use explicit utf-8 codec

There is no `PyUnicode_AsString` in Python 3, so I have no idea
why this even compiled.
parent 18f31ed9
......@@ -19,7 +19,7 @@
#define PyInt_Check PyLong_Check
// string types
#define PyString_FromString PyUnicode_FromString
#define PyString_AsString PyUnicode_AsUnicode
#define PyString_AsString PyUnicode_AsUTF8
#define PyString_FromStringAndSize PyUnicode_FromStringAndSize
#define PyString_InternFromString PyUnicode_InternFromString
#define PyString_Check(p) (PyUnicode_Check(p) || PyBytes_Check(p))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment