# HG changeset patch # User Goffi # Date 1285654237 -28800 # Node ID c065a70c3e7bc257825439ab1298aee1c0e768ed # Parent 00b27fce467782a3e39f21e678e6c5997b67a83b fixed encoding issue for a warning diff -r 00b27fce4677 -r c065a70c3e7b gcp --- 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))