[issue8670] c_types.c_wchar should not assume that sizeof(wchar_t) == sizeof(Py_UNICODE)
Daniel Stutzbach
report at bugs.python.org
Fri Oct 1 15:01:42 CEST 2010
Daniel Stutzbach <daniel at stutzbachenterprises.com> added the comment:
> You can tweak the Windows pyconfig.h to use UCS4, AFAIK, if you want to
> test drive this case.
I seem to recall seeing some other code that assumed Windows implied UCS2. Proceed with caution. ;-)
> But it's probably easier to configure with "gcc -fshort-wchar" on
> Linux :-)
libc will still be using sizeof(wchar_t) == 4, though. Won't that cause Bad Things to happen when calling libc wide-character functions?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8670>
_______________________________________
More information about the Python-bugs-list
mailing list