From 3917269a28a331a6341e0aaa4a88d72ce961cbc9 Mon Sep 17 00:00:00 2001 From: Goffi Date: Tue, 28 Sep 2010 14:10:37 +0800 Subject: [PATCH] fixed encoding issue for a warning --- gcp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcp b/gcp index 02051c2..e9e2d45 100755 --- a/gcp +++ b/gcp @@ -239,7 +239,7 @@ class GCP(): for path in args: abspath = os.path.normpath(os.path.join(os.path.expanduser(source_path), path)) if not os.path.exists(abspath): - warning(_("The path given in arg doesn't exist or is not accessible: %s") % abspath) + warning(_("The path given in arg doesn't exist or is not accessible: %s") % abspath.decode('utf-8','replace')) else: if os.path.isdir(abspath): full_dest_path = dest_path if os.path.isabs(path) else os.path.normpath(os.path.join(dest_path, path))