projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0eddb2
)
Use getpreferredencoding() instead of getdefaultlocale()
author
Ricardo Garcia
<sarbalap+freshmeat@gmail.com>
Wed, 22 Apr 2009 20:57:21 +0000
(22:57 +0200)
committer
Ricardo Garcia
<sarbalap+freshmeat@gmail.com>
Sun, 31 Oct 2010 10:24:08 +0000
(11:24 +0100)
This fixes issue #7 and is recommended after a bug report I made to the
Python team:
http://bugs.python.org/issue5815
youtube-dl
patch
|
blob
|
history
diff --git
a/youtube-dl
b/youtube-dl
index 20e26f99c06d7b70fda144c6a95a9b5655caa3a9..bc7e3b5fe9c6dffc68f6ca78f1d4a5faf382a0b3 100755
(executable)
--- a/
youtube-dl
+++ b/
youtube-dl
@@
-1056,7
+1056,7
@@
if __name__ == '__main__':
youtube_search_ie = YoutubeSearchIE(youtube_ie)
# File downloader
- charset = locale.get
defaultlocale()[1]
+ charset = locale.get
preferredencoding()
if charset is None:
charset = 'ascii'
fd = FileDownloader({