aboutsummaryrefslogtreecommitdiff
path: root/b4/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'b4/__init__.py')
-rw-r--r--b4/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/b4/__init__.py b/b4/__init__.py
index 217508e..46c2ffc 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -660,7 +660,8 @@ class LoreMessage:
msg_out = mkstemp()
patch_out = mkstemp()
cmdargs = ['mailinfo', '--encoding=UTF-8', msg_out[1], patch_out[1]]
- ecode, info = git_run_command(None, cmdargs, self.msg.as_bytes())
+ emlout = self.msg.as_string(policy=emlpolicy)
+ ecode, info = git_run_command(None, cmdargs, emlout.encode('utf-8'))
if ecode > 0:
logger.debug('ERROR: Could not get mailinfo')
return