[issue4075] Use WCHAR variant of OutputDebugString
Ulrich Eckhardt
report at bugs.python.org
Fri Oct 10 09:27:30 CEST 2008
Ulrich Eckhardt <eckhardt at satorlaser.com> added the comment:
"PythonCE project use xxxA functions for CE .NET 4.20 platform."
Look again. The PythonCE project adds a header and sourcefile
(wince_compatibility.h/c) which adds these functions. In other words, it
doesn't use the xxxA functions of the win32 API (which don't exist under
CE) but its own replacements.
I was thinking of going that way too, but in the end decided against it
unless absolutely necessary. The point is that this approach allowed
minimal changes to the Python code which still had to support the xxxA
variants for win9x. However, since IIRC 2.6 support for win9x has been
dropped, so now it makes much more sense to use the WCHAR APIs which is
what all supported MS Windows versions use internally anyway. This
allows code to work under CE unchanged, avoids unnecessary conversions
and provides better Unicode support.
BTW: in case somebody actually wants to resurrect the win9x support,
there is a library from Microsoft that provides the xxxW functions for
that platform. Of course that's not a cure but just a band-aid with
reduced functionality, but at least it's possible.
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4075>
_______________________________________
More information about the Python-bugs-list
mailing list