diff options
author | Nobuaki Sukegawa <nsuke@apache.org> | 2016-01-06 20:44:17 +0900 |
---|---|---|
committer | Nobuaki Sukegawa <nsukeg@gmail.com> | 2016-01-11 11:41:14 +0900 |
commit | a3b88a012e6452b665073b7fb9e211e86093efbf (patch) | |
tree | d6eecc9f6bff6eb3998ad0afd8d5ac3f91903358 /lib/py | |
parent | 397bd51af7cfad17a93324f0c43f8d3424627b36 (diff) | |
download | thrift-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.c | 2 |
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 --- */ |