summaryrefslogtreecommitdiff
path: root/lib/py
diff options
context:
space:
mode:
authorNobuaki Sukegawa <nsuke@apache.org>2016-01-06 20:44:17 +0900
committerNobuaki Sukegawa <nsukeg@gmail.com>2016-01-11 11:41:14 +0900
commita3b88a012e6452b665073b7fb9e211e86093efbf (patch)
treed6eecc9f6bff6eb3998ad0afd8d5ac3f91903358 /lib/py
parent397bd51af7cfad17a93324f0c43f8d3424627b36 (diff)
downloadthrift-a3b88a012e6452b665073b7fb9e211e86093efbf.tar.gz
THRIFT-3503 Enable py:utf8string by default
This closes #779
Diffstat (limited to 'lib/py')
-rw-r--r--lib/py/src/protocol/fastbinary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/py/src/protocol/fastbinary.c b/lib/py/src/protocol/fastbinary.c
index eaecb8c07..337201b26 100644
--- a/lib/py/src/protocol/fastbinary.c
+++ b/lib/py/src/protocol/fastbinary.c
@@ -228,7 +228,7 @@ parse_pyint(PyObject* o, int32_t* ret, int32_t min, int32_t max) {
static bool
is_utf8(PyObject* typeargs) {
- return PyString_Check(typeargs) && !strcmp(PyString_AS_STRING(typeargs), "UTF8");
+ return PyString_Check(typeargs) && !strncmp(PyString_AS_STRING(typeargs), "UTF8", 4);
}
/* --- FUNCTIONS TO PARSE STRUCT SPECIFICATOINS --- */