( cvs diff -u -r 1.382.2.134 -r 1.382.2.135 src/compose.c; cvs diff -u -r 1.49.2.48 -r 1.49.2.49 src/procmime.c; cvs diff -u -r 1.17.2.9 -r 1.17.2.10 src/procmime.h; cvs diff -u -r 1.22.2.8 -r 1.22.2.9 src/quote_fmt_parse.y; ) > 1.9.11cvs98.patchset
( cvs diff -u -r 1.382.2.135 -r 1.382.2.136 src/compose.c; cvs diff -u -r 1.22.2.9 -r 1.22.2.10 src/quote_fmt_parse.y; ) > 1.9.11cvs99.patchset
( cvs diff -u -r 1.105.2.25 -r 1.105.2.26 src/prefs_account.c; cvs diff -u -r 1.49.2.11 -r 1.49.2.12 src/prefs_account.h; cvs diff -u -r 1.382.2.136 -r 1.382.2.137 src/compose.c; ) > 1.9.11cvs100.patchset
+( cvs diff -u -r 1.79.2.13 -r 1.79.2.14 src/mh.c; ) > 1.9.11cvs101.patchset
static gchar *mh_item_get_path(Folder *folder, FolderItem *item)
{
gchar *folder_path, *path;
-
+ gchar *real_path;
g_return_val_if_fail(folder != NULL, NULL);
g_return_val_if_fail(item != NULL, NULL);
folder_path, NULL);
}
g_free(folder_path);
-
- return path;
+ real_path = mh_filename_from_utf8(path);
+ g_free(path);
+ return real_path;
}
static FolderItem *mh_create_folder(Folder *folder, FolderItem *parent,
static gchar *mh_filename_from_utf8(const gchar *path)
{
- const gchar *src_codeset = CS_UTF_8;
- const gchar *dest_codeset = conv_get_locale_charset_str();
- gchar *real_path;
+ gchar *real_path = g_filename_from_utf8(path, -1, NULL, NULL, NULL);
- 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);
}
static gchar *mh_filename_to_utf8(const gchar *path)
{
- const gchar *src_codeset = conv_get_locale_charset_str();
- const gchar *dest_codeset = CS_UTF_8;
- gchar *utf8path;
-
- utf8path = conv_codeset_strdup(path, src_codeset, dest_codeset);
+ gchar *utf8path = g_filename_to_utf8(path, -1, NULL, NULL, NULL);
if (!utf8path) {
g_warning("mh_filename_to_utf8: faild to convert character set\n");
- /* FIXME: show dialog? */
utf8path = g_strdup(path);
}