[issue8781] 32-bit wchar_t doesn't need to be unsigned to be usable (I think)

Daniel Stutzbach report at bugs.python.org
Wed Aug 18 18:34:13 CEST 2010


Daniel Stutzbach <daniel at stutzbachenterprises.com> added the comment:

Thanks.  I dug into that a little just now, and it turns out to happen automatically.

If ./configure doesn't define HAVE_WCHAR_H then it also will not define SIZEOF_WCHAR_T.  If SIZEOF_WCHAR_T is not defined, the preprocessor will treat it as 0 causing it to be unequal to Py_UNICODE_SIZE.  In other words, if HAVE_WCHAR_H is not defined then SIZEOF_WCHAR_T == Py_UNICODE_SIZE will be false.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8781>
_______________________________________


More information about the Python-bugs-list mailing list