mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 00:27:07 -05:00 
			
		
		
		
	Use getpreferredencoding() instead of getdefaultlocale()
This fixes issue #7 and is recommended after a bug report I made to the Python team: http://bugs.python.org/issue5815
This commit is contained in:
		@@ -1056,7 +1056,7 @@ if __name__ == '__main__':
 | 
			
		||||
		youtube_search_ie = YoutubeSearchIE(youtube_ie)
 | 
			
		||||
 | 
			
		||||
		# File downloader
 | 
			
		||||
		charset = locale.getdefaultlocale()[1]
 | 
			
		||||
		charset = locale.getpreferredencoding()
 | 
			
		||||
		if charset is None:
 | 
			
		||||
			charset = 'ascii'
 | 
			
		||||
		fd = FileDownloader({
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user