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:
Tor Lillqvist
2005-02-24 23:47:02 +00:00
committed by Tor Lillqvist
parent 95262ff478
commit 4861e60c1e
5 changed files with 21 additions and 3 deletions

View File

@@ -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-24 Matthias Clasen <mclasen@redhat.com>
* NEWS: Updates.

View File

@@ -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-24 Matthias Clasen <mclasen@redhat.com>
* NEWS: Updates.

View File

@@ -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-24 Matthias Clasen <mclasen@redhat.com>
* NEWS: Updates.

View File

@@ -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-24 Matthias Clasen <mclasen@redhat.com>
* NEWS: Updates.

View File

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