Skip to content

Instantly share code, notes, and snippets.

@lxyu
Last active December 18, 2015 23:59
Show Gist options
  • Save lxyu/5865286 to your computer and use it in GitHub Desktop.
Save lxyu/5865286 to your computer and use it in GitHub Desktop.
Add unicode support to fastbinary.c for thrift python lib. Original code refer to: https://github.com/apache/thrift/pull/26

Built thrift with patch (Mac)

$ brew remove thrift
$ brew edit thrift

Replace the patch section with the following lines:

def patches
    "https://gist.github.com/lxyu/5849125/raw/"
end

Install thrift

$ brew install thrift

Re-install thrift-python package

$ workon your_virtualenv
$ pip uninstall -y thrift
$ pip install git+https://github.com/Eleme/thrift-python.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment