]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Pass PyBUF_CHARACTER instead of PyBUF_SIMPLE to PyObject_GetBuffer().
authorGuido van Rossum <guido@python.org>
Sun, 26 Aug 2007 19:14:15 +0000 (19:14 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 26 Aug 2007 19:14:15 +0000 (19:14 +0000)
commita43cae3a0776f5dcbd2a54a0984cdff97e757cae
tree10f9fa28b155a4f2ada342dcf06b96a6b0fd98f1
parenta62db275469dedb898eb24aa547a183d23c0106d
Pass PyBUF_CHARACTER instead of PyBUF_SIMPLE to PyObject_GetBuffer().
This makes the failing tests (test_unicodedata and, on OSX, test_hashlib) pass.

XXX However, I'm not sure that this is the right thing to do;
this behavior means that Unicode strings are automatically hashed as their
UTF-8 encoding.  Is that what we want?
Modules/_hashopenssl.c