projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8fc3fb
)
[utils] Correct decoding of large unicode codepoints in uppercase_escape (Fixes ...
author
Philipp Hagemeister
<phihag@phihag.de>
Tue, 1 Apr 2014 11:17:07 +0000
(13:17 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Tue, 1 Apr 2014 11:17:07 +0000
(13:17 +0200)
youtube_dl/utils.py
patch
|
blob
|
history
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index de9881372df5171c1038f5d1b84e76bf01ef96ad..e54ea9d617e217686691312ef53d5a42e71df03c 100644
(file)
--- a/
youtube_dl/utils.py
+++ b/
youtube_dl/utils.py
@@
-1264,8
+1264,8
@@
class PagedList(object):
def uppercase_escape(s):
return re.sub(
- r'\\U
([0-9a-fA-F]{8})
',
- lambda m:
compat_chr(int(m.group(1), base=16)
), s)
+ r'\\U
[0-9a-fA-F]{8}
',
+ lambda m:
m.group(0).decode('unicode-escape'
), s)
try:
struct.pack(u'!I', 0)