From: Ricardo Mones Date: Thu, 5 Dec 2013 10:00:29 +0000 (+0100) Subject: Fix bug #3009 ‘"Rebuild folder tree" causes SIGSEGV if a directory name isn't valid... X-Git-Tag: 3.9.3~8 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=dc2158a308abd87c9ca243e9097d2e202e8514cb 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 --- diff --git a/src/folder.c b/src/folder.c index 93d74797e..b9a3dc33b 100644 --- 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;