From a9c1a81fe98b24722ae5d7599503e8c44348cb72 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Fri, 6 Jul 2012 20:22:00 +0200 Subject: [PATCH] parse.php Windows uses CTRL+Z as a EOF sequence Follow up: 1fc2bb9 - parse.php note about using ^D to end output The previous patch assumed ^D to be the standard. Change-Id: If573c1a03eb9679d74fcb24c1be6931eee361158 --- maintenance/parse.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maintenance/parse.php b/maintenance/parse.php index 15ed5ace18..464de10313 100644 --- a/maintenance/parse.php +++ b/maintenance/parse.php @@ -66,7 +66,8 @@ class CLIParser extends Maintenance { $input_file = $this->getArg( 0, $php_stdin ); if( $input_file === $php_stdin ) { - $this->error( basename(__FILE__) .": warning: reading wikitext from STDIN. Press CTRL+D to parse.\n" ); + $ctrl = wfIsWindows() ? 'CTRL+Z' : 'CTRL+D'; + $this->error( basename(__FILE__) .": warning: reading wikitext from STDIN. Press $ctrl to parse.\n" ); } return file_get_contents( $input_file ); -- 2.20.1