filenames are utf-8 in gtk

This commit is contained in:
Yann Leboulanger 2005-11-18 08:53:09 +00:00
parent 7a50fa4c7d
commit 8cdc21f0cd
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ _('Connection with peer cannot be established.'))
file_dir = None
files_path_list = dialog.get_filenames()
for file_path in files_path_list:
file_path = file_path.decode(sys.getfilesystemencoding())
file_path = file_path.decode('utf8')
if self.send_file(account, contact, file_path) and file_dir is None:
file_dir = os.path.dirname(file_path)
if file_dir: