Subprocess.communicateUtf8

bool communicateUtf8(string stdinBuf, gio.cancellable.Cancellable cancellable, out string stdoutBuf, out string stderrBuf)

Like [gio.subprocess.Subprocess.communicate], but validates the output of the process as UTF-8, and returns it as a regular NUL terminated string.

On error, stdout_buf and stderr_buf will be set to undefined values and should not be used.

Parameters

stdinBufdata to send to the stdin of the subprocess, or null
cancellablea #GCancellable
stdoutBufdata read from the subprocess stdout
stderrBufdata read from the subprocess stderr

Returns

Throws

[ErrorWrap]