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:46:36 +00:00 committed by Tor Lillqvist
parent fecea1491e
commit ec66d4530e
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-23 Matthias Clasen <mclasen@redhat.com>
* configure.in: Don't forget to set G_THREAD_LIBS_FOR_GTHREAD

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-23 Matthias Clasen <mclasen@redhat.com>
* configure.in: Don't forget to set G_THREAD_LIBS_FOR_GTHREAD

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-23 Matthias Clasen <mclasen@redhat.com>
* configure.in: Don't forget to set G_THREAD_LIBS_FOR_GTHREAD

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-23 Matthias Clasen <mclasen@redhat.com>
* configure.in: Don't forget to set G_THREAD_LIBS_FOR_GTHREAD

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