<p>In <a href="https://github.com/geany/geany/pull/621#discussion_r40503844">src/document.c</a>:</p>
<pre style='color:#555'>>      {
>            ui_set_statusbar(TRUE, "%s", err->message);
>            g_error_free(err);
>            return FALSE;
>    }
>  
> -  filedata->len = (gsize) st.st_size;
</pre>
<p>Yeah agreed it looked odd.  FTR I just <a href="/geany/geany/commit/5331b0ada0bf655aa284c2712c98984c428b65da#diff-20352f47f8a14db7c31057b243a0ad26R637">traced it back to some encoding-related stuff</a>, no explanation why not using the size returned by the load function</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/621/files#r40503844">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ3X2ltYvGA0rYPg9pPuZSnVuWrM0ks5o19rkgaJpZM4FwLm6.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/621/files#r40503844"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>