mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-02 07:36:17 +01:00
Use g_fopen(). (#168341, Daniel Atallah)
2005-02-24 Tor Lillqvist <tml@novell.com> * glib/gfileutils.c (get_contents_win32): Use g_fopen(). (#168341, Daniel Atallah)
This commit is contained in:
parent
fecea1491e
commit
ec66d4530e
@ -1,3 +1,8 @@
|
||||
2005-02-24 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* glib/gfileutils.c (get_contents_win32): Use g_fopen(). (#168341,
|
||||
Daniel Atallah)
|
||||
|
||||
2005-02-23 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* configure.in: Don't forget to set G_THREAD_LIBS_FOR_GTHREAD
|
||||
|
@ -1,3 +1,8 @@
|
||||
2005-02-24 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* glib/gfileutils.c (get_contents_win32): Use g_fopen(). (#168341,
|
||||
Daniel Atallah)
|
||||
|
||||
2005-02-23 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* configure.in: Don't forget to set G_THREAD_LIBS_FOR_GTHREAD
|
||||
|
@ -1,3 +1,8 @@
|
||||
2005-02-24 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* glib/gfileutils.c (get_contents_win32): Use g_fopen(). (#168341,
|
||||
Daniel Atallah)
|
||||
|
||||
2005-02-23 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* configure.in: Don't forget to set G_THREAD_LIBS_FOR_GTHREAD
|
||||
|
@ -1,3 +1,8 @@
|
||||
2005-02-24 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* glib/gfileutils.c (get_contents_win32): Use g_fopen(). (#168341,
|
||||
Daniel Atallah)
|
||||
|
||||
2005-02-23 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* configure.in: Don't forget to set G_THREAD_LIBS_FOR_GTHREAD
|
||||
|
@ -717,13 +717,11 @@ get_contents_win32 (const gchar *filename,
|
||||
{
|
||||
FILE *f;
|
||||
gboolean retval;
|
||||
wchar_t *wfilename = g_utf8_to_utf16 (filename, -1, NULL, NULL, NULL);
|
||||
gchar *display_filename = g_filename_display_name (filename);
|
||||
int save_errno;
|
||||
|
||||
f = _wfopen (wfilename, L"rb");
|
||||
f = g_fopen (filename, "rb");
|
||||
save_errno = errno;
|
||||
g_free (wfilename);
|
||||
|
||||
if (f == NULL)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user