Make stdin unbuffered too, when PYTHONUNBUFFERED is specified.
diff --git a/Python/frozenmain.c b/Python/frozenmain.c
index 755033c..10fba54 100644
--- a/Python/frozenmain.c
+++ b/Python/frozenmain.c
@@ -51,6 +51,7 @@
 		unbuffered = 1;
 
 	if (unbuffered) {
+		setbuf(stdin, (char *)NULL);
 		setbuf(stdout, (char *)NULL);
 		setbuf(stderr, (char *)NULL);
 	}