[issue8781] 32-bit wchar_t doesn't need to be unsigned to be usable (I think)
Marc-Andre Lemburg
report at bugs.python.org
Wed Aug 18 18:18:16 CEST 2010
Marc-Andre Lemburg <mal at egenix.com> added the comment:
Daniel Stutzbach wrote:
>
> Daniel Stutzbach <daniel at stutzbachenterprises.com> added the comment:
>
> Attached is a patch implementing the change agreed upon in the earlier discussion. This will allow wchar_t <-> Py_UNICODE conversions to use memcpy on systems where wchar_t and Py_UNICODE have the same size but different signs (e.g., Linux).
Please make sure that those places where you replaced HAVE_USABLE_WCHAR_T
are enclosed in
#ifdef HAVE_WCHAR_H
...
#endif
sections. For unicodeobject.c that's true, not sure about the other
places.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8781>
_______________________________________
More information about the Python-bugs-list
mailing list