+
+#warning FIXME_GTK2 /* should we use g_filename_from_utf8()? */
+static gchar *mh_filename_from_utf8(const gchar *path)
+{
+ const gchar *src_codeset = CS_UTF_8;
+ const gchar *dest_codeset = conv_get_current_charset_str();
+ gchar *real_path;
+
+ real_path = conv_codeset_strdup(path, src_codeset, dest_codeset);
+ if (!real_path) {
+ g_warning("mh_filename_from_utf8: faild to convert character set\n");
+ /* FIXME: show dialog? */
+ real_path = g_strdup(path);
+ }
+
+ return real_path;
+}
+
+#warning FIXME_GTK2 /* should we use g_filename_to_utf8()? */
+static gchar *mh_filename_to_utf8(const gchar *path)
+{
+ const gchar *src_codeset = conv_get_current_charset_str();
+ const gchar *dest_codeset = CS_UTF_8;
+ gchar *utf8path;
+
+ utf8path = conv_codeset_strdup(path, src_codeset, dest_codeset);
+ if (!utf8path) {
+ g_warning("mh_filename_to_utf8: faild to convert character set\n");
+ /* FIXME: show dialog? */
+ utf8path = g_strdup(path);
+ }
+
+ return utf8path;
+}