summaryrefslogtreecommitdiff
path: root/msgpack/unpack.h
diff options
context:
space:
mode:
Diffstat (limited to 'msgpack/unpack.h')
-rw-r--r--msgpack/unpack.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/msgpack/unpack.h b/msgpack/unpack.h
index d7b5e00..63e5543 100644
--- a/msgpack/unpack.h
+++ b/msgpack/unpack.h
@@ -232,7 +232,7 @@ static inline int unpack_callback_raw(unpack_user* u, const char* b, const char*
} else if (u->raw) {
py = PyBytes_FromStringAndSize(p, l);
} else {
- py = PyUnicode_DecodeUTF8(p, l, NULL);
+ py = PyUnicode_DecodeUTF8(p, l, u->unicode_errors);
}
if (!py)
return -1;