[Scons-dev] Unicode support in print_tree / render_tree
Remko Tronçon
remko at el-tramo.be
Sat Jul 13 03:32:35 EDT 2013
Hi,
I filed a bug report for --tree=... crashing if the dependency tree
contains unicode characters (
http://scons.tigris.org/issues/show_bug.cgi?id=2910 ) I fixed the bug
locally by calling repr() on every element in the tree (which is also
done by the code that dumps actions)
I wouldn't mind sending a fix with tests upstream, but I would have to
know what the recommended fix is. If I repr() everything, then I guess
all the tree tests will start failing (because strings get wrapped in
quotes), and all tests need to be adapted. Another alternative would
be to check for newlines and non-printable characters, and only repr()
the string if it contains them. Other suggestions are welcome.
thanks,
Remko
More information about the Scons-dev
mailing list