From: Fridrich Štrba Date: Wed, 8 Sep 2010 08:05:27 +0000 (+0200) Subject: Avoid having backslashes in uri on windows X-Git-Tag: upstream/3.7.4~2634 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=87fd03fc794a1205bc56c14da94ac54813ed5335;p=platform%2Fupstream%2Fevolution-data-server.git Avoid having backslashes in uri on windows --- diff --git a/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c b/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c index 61f207e..c621e84 100644 --- a/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c +++ b/calendar/backends/groupwise/e-cal-backend-groupwise-utils.c @@ -909,13 +909,13 @@ set_attachments_to_cal_component (EGwItem *item, ECalComponent *comp, ECalBacken gchar *filename; attach_item = (EGwItemAttachment *) l->data; - attach_file_url = g_strconcat ( - "file://", cache_dir, "/", uid, "-", attach_item->name, NULL); + filename = g_strconcat ( + cache_dir, G_DIR_SEPARATOR_S, uid, "-", attach_item->name, NULL); - filename = g_filename_from_uri (attach_file_url, NULL, &error); - - if (!filename) { - g_message ("Could not get filename %s \n", error->message); + attach_file_url = g_filename_to_uri (filename, NULL, &error); + + if (!attach_file_url) { + g_message ("Could not get attach_file_url %s \n", error->message); g_clear_error (&error); return; }