google-code-export / yabi

Automatically exported from code.google.com/p/yabi
0 stars 1 forks source link

Non-ASCII Unicode characters unsupported in yabi-be-twisted #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
It seems to be DEBUG printing triggering this. Will need to test.

Original comment by ahunter.ccg@gmail.com on 7 Jul 2011 at 1:23

GoogleCodeExporter commented 9 years ago

Original comment by aahun...@gmail.com on 7 Jul 2012 at 3:45