mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Use GLib's g_fopen() and g_open() when working with files
On Windows, the GLib wrappers for fopen() and open() deal with the UTF-8 format used for file names when we have to open or save a file with unicode characters in its name. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f3b9a37fb2
commit
4f18f83ce9
2 changed files with 3 additions and 3 deletions
|
@ -352,7 +352,7 @@ void save_dives(const char *filename)
|
|||
struct dive *dive;
|
||||
dive_trip_t *trip = NULL;
|
||||
|
||||
FILE *f = fopen(filename, "w");
|
||||
FILE *f = g_fopen(filename, "w");
|
||||
|
||||
if (!f)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue