diff options
author | Dāvis Mosāns <davispuh@gmail.com> | 2016-11-23 12:11:40 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-11-30 14:06:51 (GMT) |
commit | 2ed473b3b8e28485e6a14a49c7e0e4133eb02eee (patch) | |
tree | 1343f0e826693c923074102e588f90f0678e3cc5 /Help/command | |
parent | 076aef8e45a91e83f9a7d879712fd70778d67c92 (diff) | |
download | CMake-2ed473b3b8e28485e6a14a49c7e0e4133eb02eee.zip CMake-2ed473b3b8e28485e6a14a49c7e0e4133eb02eee.tar.gz CMake-2ed473b3b8e28485e6a14a49c7e0e4133eb02eee.tar.bz2 |
execute_process: Add ENCODING option for Windows child process output
Different applications can use different output encodings.
Diffstat (limited to 'Help/command')
-rw-r--r-- | Help/command/execute_process.rst | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Help/command/execute_process.rst b/Help/command/execute_process.rst index e9a5eb0..71233d9 100644 --- a/Help/command/execute_process.rst +++ b/Help/command/execute_process.rst @@ -18,7 +18,8 @@ Execute one or more child processes. [OUTPUT_QUIET] [ERROR_QUIET] [OUTPUT_STRIP_TRAILING_WHITESPACE] - [ERROR_STRIP_TRAILING_WHITESPACE]) + [ERROR_STRIP_TRAILING_WHITESPACE] + [ENCODING <name>]) Runs the given sequence of one or more commands in parallel with the standard output of each process piped to the standard input of the next. @@ -66,6 +67,14 @@ Options: ``OUTPUT_QUIET``, ``ERROR_QUIET`` The standard output or standard error results will be quietly ignored. +``ENCODING <name>`` + On Windows, the encoding that is used to decode output from the process. + Ignored on other platforms. + Valid encoding names are: ``AUTO`` (the default), ``NONE``, ``UTF8``, + ``ANSI`` and ``OEM``. + ``AUTO`` encoding means current active console's codepage will be used + or if that isn't available then ``ANSI`` codepage will be used. + If more than one ``OUTPUT_*`` or ``ERROR_*`` option is given for the same pipe the precedence is not specified. If no ``OUTPUT_*`` or ``ERROR_*`` options are given the output will |