From b4d7c0892ef5b329476a6c3689585ca60ca2d8b0 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 2 May 2009 23:11:12 -0400 Subject: =?UTF-8?q?Bug=20572977=20=E2=80=93=20Use=20g=5Fstrerror()=20inste?= =?UTF-8?q?ad=20of=20strerror()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mail/mail-ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mail/mail-ops.c') diff --git a/mail/mail-ops.c b/mail/mail-ops.c index 5d9386b6c0..0eb6c9414c 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -2091,7 +2091,7 @@ save_messages_exec (struct _save_messages_msg *m) || camel_data_wrapper_write_to_stream((CamelDataWrapper *)message, (CamelStream *)filtered_stream) == -1 || camel_stream_flush((CamelStream *)filtered_stream) == -1) { camel_exception_setv(&m->base.ex, CAMEL_EXCEPTION_SYSTEM, - _("Error saving messages to: %s:\n %s"), m->path, strerror(errno)); + _("Error saving messages to: %s:\n %s"), m->path, g_strerror(errno)); g_free(from); camel_object_unref((CamelObject *)message); break; -- cgit v1.2.3 From f4ecf2d62fd8766fa0b0c7d6483d9a583459267c Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Mon, 4 May 2009 10:48:31 +0530 Subject: Assure that the filename <-> uri conversion are done with g_filename_{to,from}_uri and not by concatenating strings which is broken with win32-style uris --- mail/mail-ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mail/mail-ops.c') diff --git a/mail/mail-ops.c b/mail/mail-ops.c index 0eb6c9414c..a8aa14d278 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -2062,7 +2062,7 @@ save_messages_exec (struct _save_messages_msg *m) if (strstr (m->path, "://")) path = m->path; else - path = g_strjoin (NULL, "file://", m->path, NULL); + path = g_filename_to_uri (m->path, NULL, NULL); stream = camel_stream_vfs_new_with_uri (path, CAMEL_STREAM_VFS_CREATE); from_filter = camel_mime_filter_from_new(); @@ -2176,7 +2176,7 @@ save_part_exec (struct _save_part_msg *m) if (strstr (m->path, "://")) path = m->path; else - path = g_strjoin (NULL, "file://", m->path, NULL); + path = g_filename_to_uri (m->path, NULL, NULL); if(!m->readonly){ if (!(stream = camel_stream_vfs_new_with_uri (path, CAMEL_STREAM_VFS_CREATE))) { -- cgit v1.2.3