summary refs log tree commit diff stats
path: root/plugins
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2014-12-12 05:29:43 -0500
committerTingPing <tingping@tingping.se>2014-12-15 15:08:00 -0500
commit7769bc99fea7139538f42e882734ab06d66426b8 (patch)
treee3afdf5cc839e3eb270f6b01b483980b5ec8cee7 /plugins
parentce396b3ddbd18fb64aa96a07c07679df14efec66 (diff)
fishlim: Use proper filesystem encoding for files
Diffstat (limited to 'plugins')
-rw-r--r--plugins/fishlim/plugin_hexchat.c8
1 files changed, 7 insertions, 1 deletions
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) {