In src/document.c:
> { > ui_set_statusbar(TRUE, "%s", err->message); > g_error_free(err); > return FALSE; > } > > - filedata->len = (gsize) st.st_size;
Hmm, just checked too and it's also related to
where size was moved to encodings.c and inside handle_buffer() (called from encodings_convert_to_utf8_auto()) it appears it distinguishes between len and size. So at least for encodings_convert_to_utf8_auto() we should actually use the value from stat(). Will try to fix.
—
Reply to this email directly or view it on GitHub.