From: Sergey M․ Date: Sun, 12 Jun 2016 09:45:07 +0000 (+0700) Subject: [downloader/external] Decode error string before writing to stderr X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=e69f9f5d68aed32cc27ca188b0f51925d949c365;p=youtube-dl [downloader/external] Decode error string before writing to stderr --- diff --git a/youtube_dl/downloader/external.py b/youtube_dl/downloader/external.py index 3ff1f9ed4..fae245024 100644 --- a/youtube_dl/downloader/external.py +++ b/youtube_dl/downloader/external.py @@ -85,7 +85,7 @@ class ExternalFD(FileDownloader): cmd, stderr=subprocess.PIPE) _, stderr = p.communicate() if p.returncode != 0: - self.to_stderr(stderr) + self.to_stderr(stderr.decode('utf-8', 'replace')) return p.returncode