mirror of
https://github.com/python/cpython.git
synced 2025-10-18 04:38:07 +00:00
On Windows, -i shouldn't call set[v]buf(stdin, ...) because it screws
up the _tkinter main loop. Not clear why; the _kbhit() call _tkinter makes probably confuses the stdio library when buffering isn't set to whatever it is by default.
This commit is contained in:
parent
446ab75fcf
commit
01b7ced834
1 changed files with 1 additions and 1 deletions
|
@ -230,7 +230,7 @@ Py_Main(argc, argv)
|
||||||
else if (Py_InteractiveFlag) {
|
else if (Py_InteractiveFlag) {
|
||||||
#ifdef MS_WINDOWS
|
#ifdef MS_WINDOWS
|
||||||
/* Doesn't have to have line-buffered -- use unbuffered */
|
/* Doesn't have to have line-buffered -- use unbuffered */
|
||||||
setvbuf(stdin, (char *)NULL, _IONBF, BUFSIZ);
|
/* Any set[v]buf(stdin, ...) screws up Tkinter :-( */
|
||||||
setvbuf(stdout, (char *)NULL, _IONBF, BUFSIZ);
|
setvbuf(stdout, (char *)NULL, _IONBF, BUFSIZ);
|
||||||
#else /* !MS_WINDOWS */
|
#else /* !MS_WINDOWS */
|
||||||
#ifdef HAVE_SETVBUF
|
#ifdef HAVE_SETVBUF
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue