Eryk Sun added the comment:

MultibyteToWideChar includes the trailing NUL when it gets the string length, 
so the WriteConsoleW call needs to use (wlen - 1).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28333>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to