<p>For reference, here's the work-around used by Gedit and other GtkSourceView editors:</p>

<p><a href="https://git.gnome.org/browse/gtksourceview/tree/gtksourceview/gtksourcefilesaver.c#n465">https://git.gnome.org/browse/gtksourceview/tree/gtksourceview/gtksourcefilesaver.c#n465</a></p>

<p>For <a href="https://bugzilla.gnome.org/show_bug.cgi?id=602412">the bug report not linked above</a> for whatever reason.</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/issues/942#issuecomment-193426711">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ6e3NHbz9c5wqP2ykVRkiI5ILkG5ks5prIUogaJpZM4Hqva_.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/issues/942#issuecomment-193426711"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>