<p>Hum, this looks to me like it's the wrong place.  All spawn code expects locale strings everywhere (apparently: no conversion is done at all), and changing that would break API -- and it's actually consistent across that module (yet, it should be documented).<br>
Couldn't we convert the directory (and possibly other bits) before feeding it to <code>spawn_*()</code>?  Also, we probably need to do that in all cases (non-Windows too), as we use <code>g_spawn_*()</code> API there, and it requires arguments in locale encoding (GLib filename encoding actually, but that's locale but on Windows).</p>

<p>So if something's wrong I'd say it's the calling code, and the docs not being clear enough.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/1095#issuecomment-228902506">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/ABDrJ7byvRBzsymT6aAjjacMg_efF4Lcks5qQFd9gaJpZM4I_lTo">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ9pjfLVq2RvkkQxshQAM4cu9Kpccks5qQFd9gaJpZM4I_lTo.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/pull/1095#issuecomment-228902506"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>