The spawn calls display nothing, of course, they only return a GError (and even know nothing about gtk+, only glib is used).
Since I haven't seen any internally used win~1 functions except CreateProcess (== exec) to produce any errors, removing the function name, except when compiling the test program, seems acceptable to me.
One unpleasant problem is that, if the command line can not be parsed properly, glib often includes it's text in the GError message, along with the translated error description. If the command line is in locale, it won't be displayed properly (Help -> Debug Messages will even terminate Geany with an assertion, as in PR #658). But the (entire) message can not be converted to utf-8 by the caller, because the translated text will break.
Maybe I should refrain from mimicking this glib behavior under win~1, and even replace the offending glib messages under *nix? It's possible, based on their GError codes.
—
Reply to this email directly or view it on GitHub.