<p>The last part, "CreateProcess() failed: The system cannot find the file specified.", is generated by spawn_<em>(). Normally it would be the error text only, but spawn_</em>() is a complex call, with several other (though unlikely) points of failure, thus the function name.</p>

<p>As of the executable name, only the caller really knows whether it's locale or UTF-8 (having a locale names does not guarantee that all names are locale, that's a basic error in Geany). So spawn_*() is encoding-agnostic, but a GError message must be in UTF-8, and thus the executable is not included.</p>

<p>That is not to say that I'm against more sensible messages - we even discussed it while polishing spawn, but could not reach any sensible conclusion. Perhaps it would be best to display user-friendly messages based on the most likely error, and put the full details in the Status tab, or Debug -> Messages.</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-146603760">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ_q37e0cBqV-iK0aUVTyg-aXxKmsks5o5pEWgaJpZM4FNtnl.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-146603760"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>