encode filename before opening

This commit is contained in:
j 2014-10-29 01:56:26 +01:00
parent 909b0904d4
commit c2e0129438

View file

@ -156,7 +156,7 @@ def make_meta_file(file, url, params = {}, flag = Event(),
if flag.isSet():
return
check_info(info)
h = open(f, 'wb')
h = open(f.encode(encoding), 'wb')
data = {'info': info, 'announce': url.strip(), 'creation date': int(time())}
if 'comment' in params and params['comment']: