[Bug #790356] unctrl() doesn't work for full printable charset. Fix by Dave Cinege.
This commit is contained in:
parent
e752e20605
commit
72cdb70296
|
@ -87,6 +87,8 @@ def alt(c):
|
|||
return _ctoi(c) | 0x80
|
||||
|
||||
def unctrl(c):
|
||||
if isprint(c):
|
||||
return chr(_ctoi(c))
|
||||
bits = _ctoi(c)
|
||||
if bits == 0x7f:
|
||||
rep = "^?"
|
||||
|
|
Loading…
Reference in New Issue