<p>The spawn calls display nothing, of course, they only return a GError (and even know nothing about gtk+, only glib is used).</p>

<p>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.</p>

<p>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 <a href="https://github.com/geany/geany/pull/658" class="issue-link" title="Fix configdir encoding">#658</a>). But the (entire) message can not be converted to utf-8 by the caller, because the translated text will break.</p>

<p>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.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/issues/541#issuecomment-146928217">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ0kx7nj1GwZJoDJyEPutoZmPPN9Kks5o5-fLgaJpZM4FNtnl.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/541#issuecomment-146928217"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>