From 4f18f83ce9a46c58720e0ed65074bd60f92b0e29 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Wed, 3 Oct 2012 17:29:01 +0300 Subject: 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 Signed-off-by: Dirk Hohndel --- save-xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'save-xml.c') diff --git a/save-xml.c b/save-xml.c index 8fa723f61..f386814f3 100644 --- a/save-xml.c +++ b/save-xml.c @@ -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; -- cgit v1.2.3-70-g09d2