mirror of
				https://github.com/ytdl-org/youtube-dl.git
				synced 2025-10-29 09:26:20 -07:00 
			
		
		
		
	[utils] Jython support - handle filenames correctly
Now test:youtube downloads
This commit is contained in:
		| @@ -467,6 +467,10 @@ def encodeFilename(s, for_subprocess=False): | ||||
|     if not for_subprocess and sys.platform == 'win32' and sys.getwindowsversion()[0] >= 5: | ||||
|         return s | ||||
|  | ||||
|     # Jython assumes filenames are Unicode strings though reported as Python 2.x compatible | ||||
|     if sys.platform.startswith('java'): | ||||
|         return s | ||||
|  | ||||
|     return s.encode(get_subprocess_encoding(), 'ignore') | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user