From 732efacf78e900503f787e99ea873e47ca2ed026 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Wed, 25 Nov 2020 15:05:58 +0000 Subject: [PATCH] Bugfix: rpcauth: Specify encoding for output file --- share/rpcauth/rpcauth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/rpcauth/rpcauth.py b/share/rpcauth/rpcauth.py index 49f7efc9f9..1a6c8cc901 100755 --- a/share/rpcauth/rpcauth.py +++ b/share/rpcauth/rpcauth.py @@ -40,7 +40,7 @@ def main(): rpcauth = f'{args.username}:{salt}${password_hmac}' if args.output: - file = open(args.output, "x") + file = open(args.output, "x", encoding="utf8") file.write(rpcauth) if args.json: