Fix for Markup(map) with unicoded strings when using MasterTicketsPlugin depgraph
|Reported by:||shurup||Owned by:||cboos|
Trac detected an internal error: UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 43: ordinal not in range(128)
That's the source of this problem:
File "build/bdist.linux-x86_64/egg/depgraph/web_ui.py", line 146, in process_requestFile "build/bdist.linux-x86_64/egg/depgraph/depgraph.py", line 240, in expand_macroFile "build/bdist.linux-x86_64/egg/graphviz/graphviz.py", line 406, in expand_macro
I don't know Python language, but I've figured how to fix it. I've changed the "open(map_path, 'r')" to "codecs.open(map_path, 'r', 'utf-8')" and added "import codecs". Now, this problem has gone, and everything seems to work.
Patch for graphvizplugin 0.11-0.7.4 is attached. Feel free to make something more reasonable than stupid code from non-python (non-)programmer.