From 7769bc99fea7139538f42e882734ab06d66426b8 Mon Sep 17 00:00:00 2001 From: TingPing Date: Fri, 12 Dec 2014 05:29:43 -0500 Subject: [PATCH] fishlim: Use proper filesystem encoding for files --- plugins/fishlim/plugin_hexchat.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/fishlim/plugin_hexchat.c b/plugins/fishlim/plugin_hexchat.c index ce0e8a69..aa7249f2 100644 --- a/plugins/fishlim/plugin_hexchat.c +++ b/plugins/fishlim/plugin_hexchat.c @@ -52,7 +52,13 @@ static hexchat_plugin *ph; * Returns the path to the key store file. */ gchar *get_config_filename() { - return g_build_filename(hexchat_get_info(ph, "configdir"), "addon_fishlim.conf", NULL); + char *filename_fs, *filename_utf8; + + filename_utf8 = g_build_filename(hexchat_get_info(ph, "configdir"), "addon_fishlim.conf", NULL); + filename_fs = g_filename_from_utf8 (filename_utf8, -1, NULL, NULL, NULL); + + g_free (filename_utf8); + return filename_fs; } int irc_nick_cmp(const char *a, const char *b) {