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