commit dc2158a308abd87c9ca243e9097d2e202e8514cb
parent 839e5d98beef6f722d719ff976ec17b39ff40f6e
Author: Ricardo Mones <ricardo@mones.org>
Date: Thu, 5 Dec 2013 11:00:29 +0100
Fix bug #3009 ‘"Rebuild folder tree" causes SIGSEGV if a directory name isn't valid utf-8’
Based on initial patch submitted by Fabian Keil <fk@fabiankeil.de>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/folder.c b/src/folder.c
@@ -346,7 +346,7 @@ FolderItem *folder_item_new(Folder *folder, const gchar *name, const gchar *path
cm_return_val_if_fail(item != NULL, NULL);
item->stype = F_NORMAL;
- item->name = g_strdup(name);
+ item->name = conv_filename_to_utf8(name);
item->path = g_strdup(path);
item->mtime = 0;
item->new_msgs = 0;