diff options
author | Guido van Rossum <guido@python.org> | 1999-02-09 18:36:51 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-02-09 18:36:51 (GMT) |
commit | 01b7ced83452b733c4db004307292493c9dd6d73 (patch) | |
tree | 7ea8b6d453567166f15d06b175451c521bdb6b31 /Modules/main.c | |
parent | 446ab75fcfcfaf67b2692f09c3d80b4f538c56ac (diff) | |
download | cpython-01b7ced83452b733c4db004307292493c9dd6d73.zip cpython-01b7ced83452b733c4db004307292493c9dd6d73.tar.gz cpython-01b7ced83452b733c4db004307292493c9dd6d73.tar.bz2 |
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.
Diffstat (limited to 'Modules/main.c')
-rw-r--r-- | Modules/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/main.c b/Modules/main.c index 556a67a..58df084 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -230,7 +230,7 @@ Py_Main(argc, argv) else if (Py_InteractiveFlag) { #ifdef MS_WINDOWS /* 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); #else /* !MS_WINDOWS */ #ifdef HAVE_SETVBUF |