[Github-comments] [geany/geany] `write_data_to_disk()` does not follow Glib advice (#1271)

Matthew Brush notifications at xxxxx
Sat Oct 22 00:46:53 UTC 2016


> Why was the g_ version used in the first place since there is no matching g_fwrite()

It's to handle filenames uniformly I expect, for example on Windows to take a UTF-8 string for filename and mode and convert them to wide-char/UTF-8 like Windows uses normally. The [definition is here](https://git.gnome.org/browse/glib/tree/glib/gstdio.c#n713)

I don't there's an issue as the same C lib will be used in all supported configurations (mscvrt or glibc). It might be a problem if Geany `g_fopen`-ed a `FILE` and passed it to Scintilla, which uses a different C runtime (part of libstdc++ IIUC).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1271#issuecomment-255496226
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20161021/96e4c1d0/attachment.html>


More information about the Github-comments mailing list