<blockquote>
<p>Still I think, this place is not that wrong, at least on Windows, because usually we say: "use <code>utils_get_locale_from_utf8</code> everywhere!" and on Windows this is just a no-op. This is OK for almost all places, especially when dealing with filenames and the GLib file API.</p>
</blockquote>

<p>Yes, it's true that as GLib uses "filename encoding" in most OS-related places, it makes some sense.  It's unfortunate we have our helpers named "locale", which is a lie on Windows.</p>

<p>So yeah having an API accepting "filename encoding" might be nice, although <a href="https://github.com/elextr" class="user-mention">@elextr</a>'s pint is also valid: we probably should provide an UTF-8-based API that does everything.  Although it's still annoying in come corner cases when we get things in filename or locale encoding from other places.</p>

<p>But do we want to modify the current one or add variants?<br>
Also, this affects all four input parameters: working directory, command line, argv and environment.  All these need to be converted as appropriate.</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-229125519">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/ABDrJyEr0mzL3iVcEv5uG2dtwYaES6DOks5qQVz-gaJpZM4I_lTo">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ_f71Kg5ips5A1CApW1PlFvahJsWks5qQVz-gaJpZM4I_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-229125519"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>