summaryrefslogtreecommitdiff
path: root/fuse.py
diff options
context:
space:
mode:
authorTerence Honles <terence@honles.com>2016-03-06 23:09:15 -0800
committerTerence Honles <terence@honles.com>2016-03-06 23:09:15 -0800
commitc95ca3913eccf360207bbfc69bd52a91fc77197f (patch)
tree76cc8901b3dade32e29c56e18c02c23447f1c0cd /fuse.py
parent13f29e9f66e79eedefeaacf531ab002955514aee (diff)
downloadfusepy-c95ca3913eccf360207bbfc69bd52a91fc77197f.tar.gz
fix string encoding as referenced in #24/#25
Diffstat (limited to 'fuse.py')
-rw-r--r--fuse.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fuse.py b/fuse.py
index f546180..2d5fb8f 100644
--- a/fuse.py
+++ b/fuse.py
@@ -579,7 +579,7 @@ class FUSE(object):
attrs = self.operations('listxattr', path.decode(self.encoding)) or ''
ret = '\x00'.join(attrs).encode(self.encoding)
if len(ret) > 0:
- ret += '\x00'
+ ret += '\x00'.encode(self.encoding)
retsize = len(ret)
# allow size queries