fixed encoding issue for a warning

This commit is contained in:
Goffi 2010-09-28 14:10:37 +08:00
parent f8ca5c8e9c
commit 3917269a28
1 changed files with 1 additions and 1 deletions

2
gcp
View File

@ -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))