changeset 1507:6c2e31dad7ef

convert commandline to utf8
author nadvornik
date Fri, 03 Apr 2009 19:35:34 +0000
parents d352a44545a6
children 23d24af93ab0
files src/main.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/main.c	Thu Apr 02 23:11:07 2009 +0000
+++ b/src/main.c	Fri Apr 03 19:35:34 2009 +0000
@@ -212,7 +212,7 @@
 		i = 1;
 		while (i < argc)
 			{
-			const gchar *cmd_line = argv[i];
+			gchar *cmd_line = path_to_utf8(argv[i]);
 			gchar *cmd_all = g_build_filename(base_dir, cmd_line, NULL);
 
 			if (cmd_line[0] == G_DIR_SEPARATOR && isdir(cmd_line))
@@ -335,6 +335,7 @@
 				}
 
 			g_free(cmd_all);
+			g_free(cmd_line);
 			i++;
 			}
 		g_free(base_dir);