[xattr] Always use UTF-8

On Windows and other systems, other encodings would break when trying to encode non-ASCII characters.
Simply use UTF-8, like every sane system.
pull/2113/head
Philipp Hagemeister 2014-01-07 06:49:15 +01:00
rodzic 168da92b9a
commit afc7bc33cb
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -99,7 +99,7 @@ class XAttrMetadataPP(PostProcessor):
if infoname == "upload_date":
value = hyphenate_date(value)
byte_value = value.encode(preferredencoding())
byte_value = value.encode('utf-8')
write_xattr(filename, xattrname, byte_value)
return True, info