mirror of
https://github.com/moparisthebest/hexchat
synced 2024-11-25 10:42:18 -05:00
Consistently use g_fopen()
It handles the correct encoding on win32
This commit is contained in:
parent
a5584c6b57
commit
d78db5070a
@ -1347,7 +1347,7 @@ hexchat_fopen_file (const char *file, const char *mode, int xof_flags)
|
|||||||
FILE *fh;
|
FILE *fh;
|
||||||
|
|
||||||
if (xof_flags & XOF_FULLPATH)
|
if (xof_flags & XOF_FULLPATH)
|
||||||
return fopen (file, mode);
|
return g_fopen (file, mode);
|
||||||
|
|
||||||
buf = g_build_filename (get_xdir (), file, NULL);
|
buf = g_build_filename (get_xdir (), file, NULL);
|
||||||
fh = g_fopen (buf, mode);
|
fh = g_fopen (buf, mode);
|
||||||
|
Loading…
Reference in New Issue
Block a user