On 11/16/2014 11:49 AM, R. David Murray wrote:
Stefano, the right place to send an enquiry about a bug is python-list, not py-dev.On 2014年11月16日 11:23:41 +0100, Stefano Borini <[email protected]> wrote:I report a finding (bug?) about the warning unicode symbol, as reported herehttp://stackoverflow.com/questions/26919799/cannot-make-warning-sign-visible-on-osx-terminal
But only if one is fairly sure there is a bug. The tracker is not for 'is this a bug' questions.Bugs should be reported to bugs.python.org.
Warning signs display fine in Idle's tkinter Text widget with Lucida Console font, and python utf-8 encodes and decodes the char.I'm doubtful this is a Python problem though. More likely it is an issue with the curses library on OSX.
>>> s='\u26a0'
>>> s
'⚠' # up-pointing triangle /_\ with ! inside
>>> b=s.encode('utf-8')
>>> b
b'\xe2\x9a\xa0'
>>> b.decode('utf-8')
'⚠'
Presuming that the bytes are correct, there is no bug here.
--
Terry Jan Reedy
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com