mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-16 01:21:07 +00:00
submittodebian: open file in binary mode before writing utf-8 encoded bytes
LP: #1863119
This commit is contained in:
parent
1e1702e676
commit
fe30873247
@ -239,7 +239,7 @@ def main():
|
|||||||
|
|
||||||
tmpdir = mkdtemp()
|
tmpdir = mkdtemp()
|
||||||
body = os.path.join(tmpdir, 'bug_body')
|
body = os.path.join(tmpdir, 'bug_body')
|
||||||
with open(body, 'w', encoding='utf-8') as f:
|
with open(body, 'wb') as f:
|
||||||
f.write(bug_body.encode('utf-8'))
|
f.write(bug_body.encode('utf-8'))
|
||||||
|
|
||||||
restore_maintainer('debian')
|
restore_maintainer('debian')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user