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 --- calendar/gui/migration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'calendar') diff --git a/calendar/gui/migration.c b/calendar/gui/migration.c index 0f012d5f12..8a68e4ffdc 100644 --- a/calendar/gui/migration.c +++ b/calendar/gui/migration.c @@ -317,7 +317,7 @@ migrate_ical_folder_to_source (char *old_path, ESource *new_source, ECalSourceTy ECal *old_ecal = NULL, *new_ecal = NULL; ESource *old_source; ESourceGroup *group; - char *old_uri = g_strdup_printf ("file://%s", old_path); + char *old_uri = g_filename_to_uri (old_path, NULL, NULL); GError *error = NULL; gboolean retval = FALSE; -- cgit v1.2.3