<p></p>
<p>I did NOT test this and it's not the best solution, but given the mess about encodings we have all around, it might be the easiest solution.  So, does something like this help?</p>
<div class="highlight highlight-source-diff"><pre><span class="pl-c1">diff --git a/src/libmain.c b/src/libmain.c</span>
index f1fdb41ef..51c51d342 100644
<span class="pl-md">--- a/src/libmain.c</span>
<span class="pl-mi1">+++ b/src/libmain.c</span>
<span class="pl-mdr">@@ -329,6 +329,9 @@</span> gchar *main_get_argv_filename(const gchar *filename)
                        cur_dir = g_get_current_dir();
                else
                        cur_dir = g_strdup(original_cwd);
<span class="pl-mi1"><span class="pl-mi1">+</span>#ifdef G_OS_WIN32</span>
<span class="pl-mi1"><span class="pl-mi1">+</span>                SETPTR(cur_dir, utils_get_locale_from_utf8(cur_dir));</span>
<span class="pl-mi1"><span class="pl-mi1">+</span>#endif</span>
 
                result = g_strjoin(
                        G_DIR_SEPARATOR_S, cur_dir, filename, NULL);</pre></div>

<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-727908600">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJYYBBXKELF5FDG5IYLSQEBQHANCNFSM4TWHKV7Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ2XY2ARAIK2ST4D74LSQEBQHA5CNFSM4TWHKV72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFNRQB6A.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-727908600",
"url": "https://github.com/geany/geany/pull/2660#issuecomment-727908600",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>