Skip to content

Commit

Permalink
Ensure zip filenames are UTF-8 (closes #94)
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjabear committed Sep 19, 2016
1 parent c9b83ea commit ad2164b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gordon/resources/lambdas.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,9 @@ def get_zip_file(self):
for filename in files:
source = os.path.join(destination, basedir, filename)
relative_destination = os.path.join(relative, filename)
if six.PY2:
source = source.decode('utf-8', errors='strict')
relative_destination = relative_destination.decode('utf-8', errors='strict')
zf.write(source, relative_destination)

tmp.seek(0)
Expand Down

0 comments on commit ad2164b

Please sign in to comment.