aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-11-05 07:58:56 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-11-05 07:58:56 +0000
commit9729135288d04b4616dae5a3bc530cd9b9968d7d (patch)
tree26bc4e7ac7656d56514dfbdf453da853e1b3eb32 /src/main.c
parentbddb4823743f012b5905f553cbe4f3c6575361b4 (diff)
fixes restart of process on Win32 when installed on non-ascii path.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2712 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 8d3a01e6..61553050 100644
--- a/src/main.c
+++ b/src/main.c
@@ -133,7 +133,7 @@ static struct RemoteCmd {
gboolean configdir;
gboolean exit;
gboolean restart;
- const gchar *argv0;
+ gchar *argv0;
#ifdef G_OS_WIN32
gushort ipcport;
#endif
@@ -618,7 +618,9 @@ static void parse_cmd_opt(int argc, char *argv[])
cmd.compose_mailto = NULL;
}
- cmd.argv0 = argv[0];
+ cmd.argv0 = g_locale_to_utf8(argv[0], -1, NULL, NULL, NULL);
+ if (!cmd.argv0)
+ cmd.argv0 = g_strdup(argv[0]);
}
static gint get_queued_message_num(void)