althonos / althonos/fs.sshfs

fs.sshfs 2.0.20 cannot walk a nonunicode filename

Đang mở
#14 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug external
Ngôn ngữ chính
Python
Star
94
Fork
32
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

fs.sshfs cannot walk the following nonunicode file:
```python
>>> os.listdir('.')
['Ma\udcf1ana']
```
The special character is a Spanish n~, in an unknown, 8 bit encoding.

The error looks like:
```python
File "/home/dstromberg/src/pyfilesystem-tests/lib/python3.6/site-packages/paramiko/sftp_client.py", line 222, in listdir_attr
filename = msg.get_text()
File "/home/dstromberg/src/pyfilesystem-tests/lib/python3.6/site-packages/paramiko/message.py", line 178, in get_text
return u(self.get_string())
File "/home/dstromberg/src/pyfilesystem-tests/lib/python3.6/site-packages/paramiko/py3compat.py", line 143, in u
return s.decode(encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf1 in position 2: invalid continuation byte
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.