This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author stutzbach
Recipients flox, lemburg, loewis, pitrou, stutzbach
Date 2010-08-25.11:31:41
SpamBayes Score 0.0006567813
Marked as misclassified No
Message-id <1282735904.13.0.866801767519.issue8781@psf.upfronthosting.co.za>
In-reply-to
Content
The underlying problem here is that SIZEOF_WCHAR_T is not defined in pyconfig.h on Windows.  My patch assumed that it would be defined on all platforms where HAVE_WCHAR_H is defined (I had checked ./configure, but forgotten Windows).

This has come up before and caused problems for other projects that assume including python.h will define SIZEOF_WCHAR_T on all platforms with HAVE_WCHAR_H:
http://bugs.python.org/issue4474
http://trac.wxwidgets.org/ticket/12013

The problem with my patch can be solved in one of two ways:
1. In PC/pyconfig.h, #define SIZEOF_WCHAR_T 2, or
2. Change the #if's to: HAVE_USABLE_WCHAR_T || Py_UNICODE_SIZE == SIZEOF_WCHAR_T

I prefer option #1, but it's also a more visible change than my original patch and may warrant its own issue.  Thoughts?
History
Date User Action Args
2010-08-25 11:31:44stutzbachsetrecipients: + stutzbach, lemburg, loewis, pitrou, flox
2010-08-25 11:31:44stutzbachsetmessageid: <1282735904.13.0.866801767519.issue8781@psf.upfronthosting.co.za>
2010-08-25 11:31:42stutzbachlinkissue8781 messages
2010-08-25 11:31:41stutzbachcreate