<p>OK, looks like it god broken again with <a href="https://github.com/geany/geany-plugins/commit/d21c65372dea0268a975d0be4216afc9bb91dc1f" class="commit-link"><tt>d21c653</tt></a>, which fixes handling of <code>\</code>s and <code>"</code> in file names.</p>

<p>Interestingly enough, apparently the escaping required for <code>-file-exec-and-symbols</code>, the command used to load the file, is not really the same than the one needed for i.e. <code>-break-insert</code>.  So with the current status, it's no possible to load an executable that contains non-ASCII in its path, but it's possible to debug an executable whose source files contain non-ASCII in their paths.</p>

<p><code>-file-exec-and-symbols</code> seems to only accept escapes <code>\\</code> and <code>"</code>, and seem happy about everything else -- but newlines <code>\n</code>, which I couldn't find how to escape.</p>

<p><code>-break-insert</code> accepts more complex escapes, like <code>\ooo</code> octal sequences the above-mentioned patch introduced.</p>

<p>Seems like I only tested with non-ASCII in the source files, not the executable.  I'll fix that, yet I'm not sure if I should lower the escaping everywhere or only when it's actually required -- that might affect setups where the file system locale is not the system one, or more generally non-UTF-8 systems (which I don't have at hand, so can't test).</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 or <a href="https://github.com/geany/geany-plugins/issues/416#issuecomment-198995647">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJxLjk-oSbYM5w-mzQetuXipuXnzbks5pvZ4pgaJpZM4H0tij.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-plugins/issues/416#issuecomment-198995647"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>