[Github-comments] [geany] Fix the "source file has been modified" issue (#621)

Jiří Techet notifications at xxxxx
Sun Sep 27 18:41:26 UTC 2015


>  	{
>  		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

f60ead793d4435b8bd126519f093aef66b73a236

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:
https://github.com/geany/geany/pull/621/files#r40507696
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20150927/99e1cb5a/attachment.html>


More information about the Github-comments mailing list