[issue26345] Extra newline appended to UTF-8 strings on Windows

2016-02-12 Thread Eryk Sun
Eryk Sun added the comment: This a third-party problem due to bugs in the console's support for codepage 65001. For the general problem of Unicode in the console, see issue 1602. The best way to resolve this problem is by using the wide-character APIs, WriteConsoleW and ReadConsoleW. I suggest

[issue26345] Extra newline appended to UTF-8 strings on Windows

2016-02-12 Thread STINNER Victor
STINNER Victor added the comment: I guess that it's yet another example of the bug #1602: "windows console doesn't print or input Unicode". Don't use the Windows console, but use a better console which has a better Unicode support. For example, you can play with IDLE :-) (Maybe PowerShell or

[issue26345] Extra newline appended to UTF-8 strings on Windows

2016-02-11 Thread Egor Tensin
New submission from Egor Tensin: I've come across an issue of Python 3.5.1 appending an extra newline when print()ing non-ASCII strings on Windows. This only happens when the active "code page" is set UTF-8 in cmd.exe: >chcp Active code page: 65001 Now, if I try to print an ASCII char