[Buildbot-commits] [Buildbot] #2385: UnicodeDecode error in runprocess.py
Buildbot
nobody at buildbot.net
Thu Oct 18 18:39:20 UTC 2012
#2385: UnicodeDecode error in runprocess.py
-----------------------+-----------------------
Reporter: roger_fong | Owner:
Type: defect | Status: new
Priority: minor | Milestone: undecided
Version: 0.8.7 | Keywords:
-----------------------+-----------------------
File "/usr/lib/python2.6/site-
packages/buildbot_slave-0.8.5-py2.6.egg/buildslave/runprocess.py", line
472, in _startCommand
msg += " %s=%s\n" % (name, self.environ[name])
This part of the code prints out environment variables on your system.
If your environment name has a character (like a smart quote) that the
ascii decoder can't decode then this line will generate UnicodeDecode
error.
Fix would be to just change the line to:
msg += " %s=%s\n" % (name, (self.environ[name]).decode('UTF-8'))
or something equivalent.
I saw this problem in 0.8.3, 0.8.5 and 0.8.7
--
Ticket URL: <http://trac.buildbot.net/ticket/2385>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
More information about the Commits
mailing list