summaryrefslogtreecommitdiff
path: root/glib/gconvert.c
diff options
context:
space:
mode:
authorHans Breuer <hans@breuer.org>2003-12-13 14:38:18 +0000
committerHans Breuer <hans@src.gnome.org>2003-12-13 14:38:18 +0000
commit35a6cff869845fd5d222a81bf9707bcc7c4e6781 (patch)
treeb982a6b07dbd3af10cec307b15de1a14bdabe115 /glib/gconvert.c
parent4bd0876b62d5052765ac337cf503634434fcbe8b (diff)
downloadglib-35a6cff869845fd5d222a81bf9707bcc7c4e6781.tar.gz
get_filename_charset() needs to return false for filenames not encoded in
2003-12-13 Hans Breuer <hans@breuer.org> * glib/gconvert.c : get_filename_charset() needs to return false for filenames not encoded in utf-8, which is always true on win32 * glibconfig.h.win32.in : (u)int64 modifier isn't the gcc 'll' but always the msvcrt one 'I64' * glib/glib.def : updated
Diffstat (limited to 'glib/gconvert.c')
-rw-r--r--glib/gconvert.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/glib/gconvert.c b/glib/gconvert.c
index 4f85a0b8f..f504c6fe6 100644
--- a/glib/gconvert.c
+++ b/glib/gconvert.c
@@ -1088,7 +1088,12 @@ get_filename_charset (const gchar **filename_charset)
}
#else /* G_PLATFORM_WIN32 */
-#define get_filename_charset (charset) TRUE
+static gboolean
+get_filename_charset (const gchar **filename_charset)
+{
+ g_get_charset (filename_charset);
+ return FALSE;
+}
#endif /* G_PLATFORM_WIN32 */
/* This is called from g_thread_init(). It's used to