[New-bugs-announce] [issue30310] tkFont.py assumes that all font families are encoded as ascii in Python 2.7
report at bugs.python.org
Mon May 8 17:42:16 EDT 2017
New submission from Marc Culler:
And that is a very bad assumption. On Windows 10 in the Japanese locale the default TkFixedFont has family u'\uff2d\uff33 \u30b4\u30b7\u30c3\u30af' (a transliteration of MS Gothic).
The error occurs on line 51:
47 def _set(self, kw):
48 options = 
49 for k, v in kw.items():
>>>> 51 options.append(str(v))
52 return tuple(options)
I will attach a screenshot showing the crash on a Japanese Windows 10 system, running in the Python 2.7 command line application.
title: tkFont.py assumes that all font families are encoded as ascii in Python 2.7
versions: Python 2.7
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce