<p>Actually, the current state (in master) is terrible.  For example, our use of the environment is plain wrong regarding the encodings: we get the environment in "GLib filename encoding" (that is, UTF-8 on windows, locale otherwise), but we add UTF-8 values to it and pass it to various functions.  This <em>was</em> right on Windows when we used <code>g_spawn_*()</code>, but it's wrong now.  And on non-Windows, it was always wrong (and we do the same with VTE API, same problem).</p>

<p>Same problem with most (but not all) other arguments, where we just used to dump UTF-8 and hope.  Again, it appeared to work because the Windows part used UTF-8, and other platforms generally use UTF-8 as the locale so we can confuse it just fine.</p>

<p>So yeah, we broke stuff, especially on Windows.  But it's actually wrong all over the place, with <em>some</em> places where it's right.</p>

<p>I'll try to sort those out but well.</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-229052287">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/ABDrJ7lIOgWH0gA8CoCt7AxyF2LmXK39ks5qQSS3gaJpZM4I_lTo">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ1YQeGBYOSvU9kHIUIV1gNaYcKQCks5qQSS3gaJpZM4I_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-229052287"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>