[docs] [issue21580] PhotoImage(data=...) apparently has to be UTF-8 or Base-64 encoded
report at bugs.python.org
Wed Jul 30 17:48:09 CEST 2014
Serhiy Storchaka added the comment:
Thank you Martin for your reviews. Here is updated 2.7 patch which implements your suggestion.
The disadvantage of this patch in comparison with first version is that it will not work with statically compiled embedded Python, when only stdlib is updated. I once broke re in bugfix release in such manner (by moving one constant from Python sources to C sources). On other hand, it is very unlikely that anyone uses Tkinter in such circumstances, and in any case this part of code is broken for now, so patch should not introduce new regression.
Added file: http://bugs.python.org/file36167/tkinter_bytes-2.7_2.patch
Python tracker <report at bugs.python.org>
More information about the docs