[PATCH] msvcrt: gets() should handle EOF on stdin gracefully