fgimian / paramiko-expect

A Python expect-like extension for the Paramiko SSH library which also supports tailing logs.
MIT License
204 stars 78 forks source link

Cope with multi-byte characters splitting across recv calls #60

Closed pw201 closed 3 years ago

pw201 commented 4 years ago

For long output, multi-byte characters split across recv() calls lead to UnicodeDecodeErrors complaining about "unexpected end of data".

Basically, this scenario: https://stackoverflow.com/questions/53062552/unicodedecodeerror-utf-8-codec-cant-decode-byte-0xe2-in-position-1023-unexp/62027284#62027284

fruch commented 3 years ago

@pw201 thanks for you PR, I'm trying to get the test/CI system back online, and then I'll look into this one