After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 168341 - g_file_get_contents() doesn't work on non-NT systems
g_file_get_contents() doesn't work on non-NT systems
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: win32
2.6.x
Other Windows
: Normal major
: ---
Assigned To: gtk-win32 maintainers
gtk-win32 maintainers
: 169750 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-02-24 04:53 UTC by Daniel Atallah
Modified: 2005-03-12 13:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to make g_file_get_contents() work on win98/ME (511 bytes, patch)
2005-02-24 04:54 UTC, Daniel Atallah
none Details | Review

Description Daniel Atallah 2005-02-24 04:53:05 UTC
The get_contents_win32() uses _wfopen() which is only available on WinNT+.

This simple patch makes it use the nice new gstdio g_fopen() that takes care of
checking which fopen to use.
Comment 1 Daniel Atallah 2005-02-24 04:54:28 UTC
Created attachment 37872 [details] [review]
Patch to make g_file_get_contents() work on win98/ME

I've tested this on a winME machine and it works for me.
Comment 2 Daniel Atallah 2005-02-24 23:30:52 UTC
I just realized that the patch is reversed.  Oops.
Comment 3 Tor Lillqvist 2005-02-24 23:47:10 UTC
Thanks. Patch applied to HEAD and glib-2-6.
Comment 4 Robert Ögren 2005-03-12 13:58:08 UTC
*** Bug 169750 has been marked as a duplicate of this bug. ***