<p>For fun, I converted (most of) the explicit wide stuff to be agnostic of Win32 encoding, and defined <code>UNICODE</code> so all API functions use Unicode/wide:</p>

<p><a href="https://gist.github.com/codebrainz/fcadf6400f5f4c7263d3">https://gist.github.com/codebrainz/fcadf6400f5f4c7263d3</a></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-164307067">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ8CQuDu3rTi10dFXwENgMlNhb9Gpks5pPetqgaJpZM4G0VWF.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-164307067"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>