saghul/pycares — pull request #13 by nbraud (2014-12-08 00:40:09+00:00)
Title: setup: Fix decoding in non-UTF-8 environments

I have been hitting this issue while packaging pycares for Exherbo:
all our builds are done in sandboxes where LANG=C

Note that this fix is for Python 3 only.
As I'm not a Python developer, I will let you find a solution compatible with 2.7