fix issue with utf8 encoding in logger stdout

This commit is contained in:
Shane Jonas 2014-04-10 16:47:26 -07:00
commit d9782b2dd1
3 changed files with 3 additions and 3 deletions

View file

@ -306,7 +306,7 @@ class Service(object):
match = re.search(r'Successfully built ([0-9a-f]+)', line)
if match:
image_id = match.group(1)
sys.stdout.write(line.encode(sys.__stdout__.encoding or 'utf8'))
sys.stdout.write(line.encode(sys.__stdout__.encoding or 'utf-8'))
if image_id is None:
raise BuildError(self)