<p><a href="https://github.com/elextr" class="user-mention">@elextr</a> it depends on the encoding J. Random Pluginster has for his various variables.  Yes, if it comes from the UI, it's likely to be in UTF-8, because that's what GTK uses.  Less so if it comes from configuration files, environment or whatnot.</p>

<p>IMO it's better to have as few conversions as possible, so the API expecting locale is good IMO if it uses that.  Yes, if there's a popular demand, we could add UTF-8 variants so it converts all arguments from UTF-8 to the locale as the normal API expects, but that would have similar drawbacks if the calling code has some stuff in locale encoding already.</p>

<p>So I guess we need to</p>

<ul>
<li>make the Spawn API docs clear on the encoding it expects (if not already good enough)</li>
<li>check what we'd actually need, and add appropriate helper functions if sensible</li>
</ul>

<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-228916555">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/ABDrJ0wK6lmiH7iqJDhmc6VrnFco6vpUks5qQGx0gaJpZM4I_lTo">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ13zqGg3y-tvfCEDXA5fy95FpKfEks5qQGx0gaJpZM4I_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-228916555"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>