Attempting to get a directory listing from backend for a directory with one or
more files with non-ASCII Unicode characters in the name (ie any Unicode
codepoint > U+007F) results in the following uncaught exception in the backend
log:
2010-11-18 14:38:30+0800 [-] out Uncaught Exception in stackless threads
2010-11-18 14:38:30+0800 [-] Traceback (most recent call last):
2010-11-18 14:38:30+0800 [-] File
"/home/yabi/src/yabi-be-twisted/stacklessreactor.py", line 18, in doIteration
2010-11-18 14:38:30+0800 [-] stackless.schedule()
2010-11-18 14:38:30+0800 [-] File
"/home/yabi/src/yabi-be-twisted/fs/FileListResource.py", line 83, in do_list
2010-11-18 14:38:30+0800 [-] lister=bend.ls(hostname,path=path,
username=username,recurse=recurse, yabiusername=yabiusername, creds=creds)
2010-11-18 14:38:30+0800 [-] File
"/home/yabi/src/yabi-be-twisted/fs/connector/SSHFilesystem.py", line 135, in ls
2010-11-18 14:38:30+0800 [-] print "out", out
2010-11-18 14:38:30+0800 [-] File
"/usr/local/stackless/lib/python2.6/site-packages/twisted/python/log.py", line
555, in write
2010-11-18 14:38:30+0800 [-] d = (self.buf + data).split('\n')
2010-11-18 14:38:30+0800 [-] UnicodeDecodeError: 'ascii' codec can't decode
byte 0xc3 in position 141: ordinal not in range(128)
Original issue reported on code.google.com by ahunter.ccg@gmail.com on 7 Jul 2011 at 1:22
Original issue reported on code.google.com by
ahunter.ccg@gmail.com
on 7 Jul 2011 at 1:22