changeset 11:c065a70c3e7b

fixed encoding issue for a warning
author Goffi <goffi@goffi.org>
date Tue, 28 Sep 2010 14:10:37 +0800
parents 00b27fce4677
children bbe09d5791dd
files gcp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gcp	Tue Sep 28 14:07:04 2010 +0800
+++ b/gcp	Tue Sep 28 14:10:37 2010 +0800
@@ -239,7 +239,7 @@
         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))