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 lemburg
Recipients lemburg, mark.dickinson, rpetrov
Date 2008-12-01.11:07:47
SpamBayes Score 1.2664534e-09
Marked as misclassified No
Message-id <1228129668.75.0.583296901319.issue4474@psf.upfronthosting.co.za>
In-reply-to
Content
This is due to the function downcasting the wchar_t values to
Py_UNICODE, which is a 2-byte value if you build Python as UCS2 version
on Unix.

Most Unixes ship with UCS4 builds, so you don't see the problem there.
Mac OS X ships with a UCS2 build, which is why you run into the problem
on that platform.

UCS2 builds are also the default build on Unix, so if you compile Python
yourself, it will result in a UCS2 build, unless you explicitly specify
the UCS4 build configure option or configure happens to find a Tcl/Tk
version installed that uses UCS4 internally.
History
Date User Action Args
2008-12-01 11:07:49lemburgsetrecipients: + lemburg, mark.dickinson, rpetrov
2008-12-01 11:07:48lemburgsetmessageid: <1228129668.75.0.583296901319.issue4474@psf.upfronthosting.co.za>
2008-12-01 11:07:48lemburglinkissue4474 messages
2008-12-01 11:07:47lemburgcreate