From 54db4951d6cac68045175ce385b941b07434ad54 Mon Sep 17 00:00:00 2001 From: Oguzhan Ozturk Date: Tue, 1 Nov 2022 16:03:47 +0300 Subject: [PATCH] Fix for builds where locale can't be set easily On local github workflow runners setting system locale can be a bit cumbersome. This minor patch should be mostly harmless. --- build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.py b/build.py index 920832909..fffb22180 100755 --- a/build.py +++ b/build.py @@ -17,7 +17,7 @@ flutter_win_target_dir = 'flutter/build/windows/runner/Release/' def get_version(): - with open("Cargo.toml") as fh: + with open("Cargo.toml", encoding="utf-8") as fh: for line in fh: if line.startswith("version"): return line.replace("version", "").replace("=", "").replace('"', '').strip()