pybind11/include/pybind11
Jason Rhinelander ee9296395d Call PyUnicode_DecodeUTF* directly
Some versions of Python 2.7 reportedly (#713) have issues with
PyUnicode_Decode being passed the encoding string, so just skip it
entirely by calling the PyUnicode_DecodeUTF* function directly.  This
will also be slightly more efficient by avoiding having to check the
encoding string, and (for python 2) going through the unicode class's
decode (python 3 fast-tracks this for all utf-{8,16,32} encodings;
python 2 only fast-tracked for the exact string "utf-8", which we
weren't passing anyway (we had "utf8")).

This doesn't work for PyPy, however: its `PyUnicode_DecodeUTF{8,16,32}`
appear rather broken: the UTF8 one segfaults, while the 16/32 require
recasting into a non-const `char *` (and might segfault; I didn't get
far enough to find out).  Just avoid the whole thing by keeping the
encoding-passed-as-string version for PyPy, which seems to work
reliably.
2017-03-12 00:17:51 -04:00
..
attr.h Enable static properties (py::metaclass) by default 2017-02-23 15:45:26 +01:00
cast.h Call PyUnicode_DecodeUTF* directly 2017-03-12 00:17:51 -04:00
chrono.h Fix for floating point durations 2017-03-11 23:04:16 -04:00
class_support.h Enable static properties (py::metaclass) by default 2017-02-23 15:45:26 +01:00
common.h Make is_template_base_of ignore cv qualification 2017-02-24 23:19:50 +01:00
complex.h Made arithmetic and complex casters respect convert 2017-02-03 20:16:14 -05:00
descr.h std::valarray support for stl.h (#545) 2016-12-08 00:43:29 +01:00
eigen.h Fix negative refcount in PyCapsule destructor 2017-02-28 00:27:26 +01:00
eval.h WIP: PyPy support (#527) 2016-12-16 15:00:46 +01:00
functional.h Fixed compilation error when binding function accepting some forms of std::function (#689) 2017-02-22 20:00:59 +01:00
numpy.h array_t overload resolution support 2017-03-06 14:56:22 -05:00
operators.h Multiple inheritance support 2016-09-19 13:45:31 +02:00
options.h Provide more control over automatic generation of docstrings (#486) 2016-11-15 12:38:05 +01:00
pybind11.h Fix extra docstring newlines under options.disable_function_signatures() 2017-03-08 12:32:42 -05:00
pytypes.h Add and remove some PyPy iterator workarounds 2017-02-26 23:57:03 +01:00
stl_bind.h Change all_of_t/any_of_t to all_of/any_of, add none_of 2016-12-14 20:42:36 +01:00
stl.h WIP: PyPy support (#527) 2016-12-16 15:00:46 +01:00
typeid.h minor cleanups in common.h; updated author info and copyright year 2016-04-18 10:53:38 +02:00