This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dcinege
Recipients
Date 2003-08-18.04:09:36
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
unctrl(c) 
 Return a string representation of the ASCII character c. If c 
is printable, this string is the character itself. ... 
 
from curses.ascii import unctrl 
>>> unctrl('a') 
'a' 
>>> unctrl('A') 
'^\x81' 
 
unctrl() is not working for the full printable charset. 
 
The Q&D fix is: 
 
def unctrl(c): 
+    if isprint(c): 
+    	return c 
    bits = _ctoi(c) 
    if bits == 0x7f: 
 
This bug has been confirmed in python 2.3 and 2.2 as 
distributed in Debian Linux. 
 
History
Date User Action Args
2007-08-23 14:16:11adminlinkissue790356 messages
2007-08-23 14:16:11admincreate