From 6dc056f77114a0c3e2cf68758eaa7cf41061e173 Mon Sep 17 00:00:00 2001 From: Robby Candra Date: Thu, 16 Dec 2021 12:04:32 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20UTF-8=20errror=20in=20conf?= =?UTF-8?q?iguration=20embed=20and=20retrieve=20=20(#23303)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The feature added in commit b464a4b1a4ea9cca914126c5f50c3e7384108a5e introduced a UTF-8 encoding error for all users where UTF-8 is not the default codepage. --- buildroot/share/PlatformIO/scripts/signature.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildroot/share/PlatformIO/scripts/signature.py b/buildroot/share/PlatformIO/scripts/signature.py index 53cf347eaa..654e3ea677 100644 --- a/buildroot/share/PlatformIO/scripts/signature.py +++ b/buildroot/share/PlatformIO/scripts/signature.py @@ -12,7 +12,7 @@ import os,subprocess,re,json,hashlib # headers. # def extract_defines(filepath): - f = open(filepath).read().split("\n") + f = open(filepath, encoding="utf8").read().split("\n") a = [] for line in f: sline = line.strip(" \t\n\r")