selectel / pyte

Simple VTXXX-compatible linux terminal emulator
http://pyte.readthedocs.org/
GNU Lesser General Public License v3.0
653 stars 101 forks source link

Avoid ord() raising TypeError cause empty char #113

Closed choldrim closed 6 years ago

choldrim commented 6 years ago

https://github.com/jquast/wcwidth/issues/24

choldrim commented 6 years ago

Honestly, I have no idea why the data that I recv from the client socket would be empty, and I hardly reproduce that problem now, I think I should add some code to limit the length of what I pass to stream.feed.