diff options
| author | scoder <none@none> | 2006-05-10 09:30:52 +0200 |
|---|---|---|
| committer | scoder <none@none> | 2006-05-10 09:30:52 +0200 |
| commit | 54d4a81894ddacde59f9341ca4352bc62624638d (patch) | |
| tree | 4702554ff2b140cb323a04da7c18ab19c4471929 /src/lxml/python.pxd | |
| parent | eeb392ee4baaf75f60eda8c1d2a5f37cba8e6bdc (diff) | |
| download | python-lxml-54d4a81894ddacde59f9341ca4352bc62624638d.tar.gz | |
[svn r1112] fix str() decoding bug in _XSLTResultTree.__str__ for non-UTF8 encodings, make unicode() work on _XSLTResultTree
--HG--
branch : trunk
Diffstat (limited to 'src/lxml/python.pxd')
| -rw-r--r-- | src/lxml/python.pxd | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lxml/python.pxd b/src/lxml/python.pxd index 73c12f8c..c802fbee 100644 --- a/src/lxml/python.pxd +++ b/src/lxml/python.pxd @@ -15,6 +15,8 @@ cdef extern from "Python.h": cdef object PyUnicode_FromEncodedObject(object s, char* encoding, char* errors) + cdef object PyUnicode_Decode(char* s, Py_ssize_t size, + char* encoding, char* errors) cdef object PyUnicode_DecodeUTF8(char* s, Py_ssize_t size, char* errors) cdef object PyUnicode_AsUTF8String(object ustring) cdef char* PyUnicode_AS_DATA(object ustring) |
