From aa1813d92bb40557f670bef27c77a1e9d9e4eed8 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 df83317afd..d3fb06431d 100755 --- a/share/rpcauth/rpcauth.py +++ b/share/rpcauth/rpcauth.py @@ -37,7 +37,7 @@ def main(): password_hmac = password_to_hmac(salt, args.password) if args.output: - file = open(args.output, "x") + file = open(args.output, "x", encoding="utf8") file.write(f'{args.username}:{salt}${password_hmac}') print(f'Your password:\n{args.password}') else: