mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-12-16 13:28:31 +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:
committed by
Tor Lillqvist
parent
95262ff478
commit
4861e60c1e
@@ -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>
|
2005-02-24 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* NEWS: Updates.
|
* NEWS: Updates.
|
||||||
|
|||||||
@@ -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>
|
2005-02-24 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* NEWS: Updates.
|
* NEWS: Updates.
|
||||||
|
|||||||
@@ -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>
|
2005-02-24 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* NEWS: Updates.
|
* NEWS: Updates.
|
||||||
|
|||||||
@@ -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>
|
2005-02-24 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* NEWS: Updates.
|
* NEWS: Updates.
|
||||||
|
|||||||
@@ -717,13 +717,11 @@ get_contents_win32 (const gchar *filename,
|
|||||||
{
|
{
|
||||||
FILE *f;
|
FILE *f;
|
||||||
gboolean retval;
|
gboolean retval;
|
||||||
wchar_t *wfilename = g_utf8_to_utf16 (filename, -1, NULL, NULL, NULL);
|
|
||||||
gchar *display_filename = g_filename_display_name (filename);
|
gchar *display_filename = g_filename_display_name (filename);
|
||||||
int save_errno;
|
int save_errno;
|
||||||
|
|
||||||
f = _wfopen (wfilename, L"rb");
|
f = g_fopen (filename, "rb");
|
||||||
save_errno = errno;
|
save_errno = errno;
|
||||||
g_free (wfilename);
|
|
||||||
|
|
||||||
if (f == NULL)
|
if (f == NULL)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user