<p></p>
<p>This works if we use <code>g_locale_from_utf8()</code> instead of <code>utils_get_locale_from_utf8()</code> (the latter is just a no-op on Windows).<br>
Just committed it but will try to add some more descriptive comments and commit message in the next days, so my future me won't wonder so much in the next 12 years :).</p>
<p>Thanks <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/b4n/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/b4n">@b4n</a>. The working directory is always UTF-8 on Windows which is OK enough. But I missed the case when the filename is non-ASCII and is locale-encoded as it is passed from argv.</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/2660#issuecomment-728370443">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ24HSVOQZN36CULECLSQGSDVANCNFSM4TWHKV7Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ3ZVRJ62O3TETMB5TDSQGSDVA5CNFSM4TWHKV72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFNVA2CY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2660#issuecomment-728370443",
"url": "https://github.com/geany/geany/pull/2660#issuecomment-728370443",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>