From 042e66148d4014c459565b4987850fa5e69b562d Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Mon, 22 Jul 2013 20:38:45 +0200 Subject: Make BE working with non-ASCII username. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Matěj Cepl --- libbe/util/subproc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libbe/util/subproc.py') diff --git a/libbe/util/subproc.py b/libbe/util/subproc.py index f1f04c1..0ad010c 100644 --- a/libbe/util/subproc.py +++ b/libbe/util/subproc.py @@ -87,7 +87,9 @@ def invoke(args, stdin=None, stdout=PIPE, stderr=PIPE, expect=(0,), stdout = unicode(stdout, encoding) if stderr != None: stderr = unicode(stderr, encoding) - libbe.LOG.debug('{0}\n{1}{2}'.format(status, stdout, stderr)) + libbe.LOG.debug(u'{0}\n{1}{2}'.format(status, stdout, stderr)) + else: + libbe.LOG.debug('{0}\n{1}{2}'.format(status, stdout, stderr)) if status not in expect: raise CommandError(list_args, status, stdout, stderr) return status, stdout, stderr -- cgit