[issue9642] #ifdef and mbcs: don't check for defined(HAVE_USABLE_WCHAR_T)

Martin v. Löwis report at bugs.python.org
Thu Aug 19 23:02:22 CEST 2010


Martin v. Löwis <martin at v.loewis.de> added the comment:

> mbcs functions don't use the wchar_t type.

That's not true. MultiByteToWideChar use LPWSTR, which is a typedef for
wchar_t*.

These functions assume that Py_UNICODE is the same type as WCHAR.

> We should just check that we are compiling under Windows:

-1, see above. In the long run, it would be really good if Python
supported a four-byte Py_UNICODE on Windows - people keep asking for it.

I have been meaning to provide versions of the mbcs codecs for years
that work for UCS-4, but haven't found the time yet to implement them.

----------
nosy: +loewis
title: #ifdef and mbcs: don't check for defined(HAVE_USABLE_WCHAR_T) -> #ifdef and mbcs: don't check for	defined(HAVE_USABLE_WCHAR_T)

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


More information about the Python-bugs-list mailing list