listdir testfails with LANG=fr_CH.UTF-8
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Triaged
|
Medium
|
Unassigned | ||
Breezy |
Triaged
|
Medium
|
Unassigned |
Bug Description
bzrlib.
ERROR: bzrlib.
-------
Traceback (most recent call last):
testtools.
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
}}}
Traceback (most recent call last):
File "/build/
['a', 'a%2525b', 'b', 'c', 'c2'], sorted_list('', t))
File "/build/
l = list(transport.
File "/build/
self.
File "/build/
raise failure_exc(path, str(e) + more_info)
bzrlib.
=======
ERROR: bzrlib.
-------
Traceback (most recent call last):
testtools.
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
DEBUG [chan bzr SocketAsChannel
}}}
Traceback (most recent call last):
File "/build/
from_
File "/build/
for path in self.list_dir(dir):
File "/build/
self.
File "/build/
raise failure_exc(path, str(e) + more_info)
bzrlib.
Changed in bzr: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in brz: | |
status: | New → Triaged |
importance: | Undecided → Medium |
milestone: | none → 3.0.0 |
Changed in brz: | |
milestone: | 3.0.0 → 3.1.0 |
argh, so paramiko has this gem:
def asbytes(s):
raise Exception('Unknown type')
if not isinstance(s, bytes_types):
if isinstance(s, string_types):
s = b(s)
else:
try:
s = s.asbytes()
except Exception:
return s
Which means that if "asbytes()" raises exceptions for one reason or another, like "Exception: Unknown type <SFTPAttributes: [ size=16 uid=1000 gid=1000 mode=0100644 atime=1449250574 mtime=1449250574 ]>: UnicodeDecodeEr ror('ascii' , '-rw-r--r-- 1 1000 1000 16 04 d\xc3\xa9c 17:36 ', 46, 47, 'ordinal not in range(128)')" it gets silently hidden :(