Subprocess.communicateUtf8

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.

class Subprocess
bool
communicateUtf8

Parameters

stdinBuf string

data to send to the stdin of the subprocess, or null

cancellable gio.cancellable.Cancellable

a #GCancellable

stdoutBuf string

data read from the subprocess stdout

stderrBuf string

data read from the subprocess stderr

Return Value

Type: bool