[New-bugs-announce] [issue30310] tkFont.py assumes that all font families are encoded as ascii in Python 2.7
Marc Culler
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():
50 options.append("-"+k)
>>>> 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.
----------
components: Tkinter
messages: 293256
nosy: culler
priority: normal
severity: normal
status: open
title: tkFont.py assumes that all font families are encoded as ascii in Python 2.7
type: crash
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30310>
_______________________________________
More information about the New-bugs-announce
mailing list