mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-03 09:43:55 +02:00
Explicitly specify encoding when opening text files in Python code
This commit is contained in:
@@ -63,7 +63,7 @@ child = Popen([XGETTEXT,'--output=-','-n','--keyword=_'] + files, stdout=PIPE)
|
||||
|
||||
messages = parse_po(out.decode('utf-8'))
|
||||
|
||||
f = open(OUT_CPP, 'w')
|
||||
f = open(OUT_CPP, 'w', encoding="utf8")
|
||||
f.write("""
|
||||
|
||||
#include <QtGlobal>
|
||||
|
||||
Reference in New Issue
Block a user