Le 25/08/2011 06:46, Stefan Behnel a écrit :
Conversion to wchar_t* is common, especially on Windows.
That's an issue. However, I cannot say how common this really is in
practice. Surely depends on the specific code, right? How common is it
in core CPython?
Quite all functions taking text as argument on Windows expects wchar_t*
strings (UTF-16). In Python, we pass a "Py_UNICODE*"
(PyUnicode_AS_UNICODE or PyUnicode_AsUnicode) because Py_UNICODE is
wchar_t on Windows.
Victor
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com