Subprocess.communicateUtf8

Like g_subprocess_communicate(), but validates the output of the process as UTF-8, and returns it as a regular NUL terminated string.

class Subprocess
bool
communicateUtf8
(
string stdinBuf
,,
out string stdoutBuf
,
out string stderrBuf
)

Parameters

stdinBuf string

data to send to the stdin of the subprocess, or %NULL

cancellable Cancellable

a #GCancellable

stdoutBuf string

data read from the subprocess stdout

stderrBuf string

data read from the subprocess stderr

Throws

GException on failure.

Meta