<blockquote>
<p>Though, I guess I like the MultiByteToWideChar() wrapper, although I don't understand the use case for the non-UNICODE code path</p>
</blockquote>

<p>With <code>UNICODE</code> force-defined as it has, there's isn't much of one. But it's possible (and easy) to support both the ASCII and Wide versions with minimal difference in code, so I did in that gist.</p>

<blockquote>
<p>also find it weird that it doesn't use the locale codepage rather than ASCII? (maybe it's what it's supposed to do for non-W functions, not quite sure)</p>
</blockquote>

<p>IIUC all functions used to be ASCII, then in Windows NT they added support for Unicode, so they added a <code>DoFooA()</code> function for ASCII, <code>DoFooW()</code> function for Wide/Unicode, and have wrapper macros <code>DoFoo()</code> which is <code>#define</code>d to one of those based on whether <code>UNICODE</code> is defined (likewise for type <code>TCHAR</code> and related types and macros).</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/pull/809#issuecomment-164470002">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJy_XkQUlIEy_1svADsijefNy2VoXks5pPtoNgaJpZM4G0VWF.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/809#issuecomment-164470002"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>