filenames are utf-8 in gtk
This commit is contained in:
		
							parent
							
								
									7a50fa4c7d
								
							
						
					
					
						commit
						8cdc21f0cd
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -260,7 +260,7 @@ _('Connection with peer cannot be established.'))
 | 
				
			||||||
				file_dir = None
 | 
									file_dir = None
 | 
				
			||||||
				files_path_list = dialog.get_filenames()
 | 
									files_path_list = dialog.get_filenames()
 | 
				
			||||||
				for file_path in files_path_list:
 | 
									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:
 | 
										if self.send_file(account, contact, file_path) and file_dir is None:
 | 
				
			||||||
						file_dir = os.path.dirname(file_path)
 | 
											file_dir = os.path.dirname(file_path)
 | 
				
			||||||
				if file_dir:
 | 
									if file_dir:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue