Skip to content

Commit

Permalink
Use specified encoding for filesystem storage
Browse files Browse the repository at this point in the history
  • Loading branch information
untitaker committed Apr 9, 2014
1 parent bd599d4 commit d3e4a52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vdirsyncer/storage/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def update(self, href, item, etag):
raise exceptions.WrongEtagError(etag, actual_etag)

with open(fpath, 'wb') as f:
f.write(item.raw.encode('utf-8'))
f.write(item.raw.encode(self.encoding))
return _get_etag(fpath)

def delete(self, href, etag):
Expand Down

0 comments on commit d3e4a52

Please sign in to comment.