From fca67e8e52d9965080ba5d5d1682d431b920cbe5 Mon Sep 17 00:00:00 2001 From: "yang.lianzhao" Date: Mon, 20 May 2024 18:22:53 +0800 Subject: [PATCH 1/2] project.py: Specify the manifest file to use UTF-8 encoding --- src/west/app/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/west/app/project.py b/src/west/app/project.py index a046b65c..8aba9730 100644 --- a/src/west/app/project.py +++ b/src/west/app/project.py @@ -321,7 +321,7 @@ def bootstrap(self, args) -> Path: # Parse the manifest to get "self: path:", if it declares one. # Otherwise, use the URL. Ignore imports -- all we really # want to know is if there's a "self: path:" or not. - manifest = Manifest.from_data(temp_manifest.read_text(), + manifest = Manifest.from_data(temp_manifest.read_text('utf-8'), import_flags=ImportFlag.IGNORE) if manifest.yaml_path: manifest_path = manifest.yaml_path From 98b60486954f714e24c3480a6e3e4eec2a5f69f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=BF=9E=E9=92=8A?= Date: Sun, 26 May 2024 21:51:02 +0800 Subject: [PATCH 2/2] Update project.py --- src/west/app/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/west/app/project.py b/src/west/app/project.py index 8aba9730..20de3a2d 100644 --- a/src/west/app/project.py +++ b/src/west/app/project.py @@ -321,7 +321,7 @@ def bootstrap(self, args) -> Path: # Parse the manifest to get "self: path:", if it declares one. # Otherwise, use the URL. Ignore imports -- all we really # want to know is if there's a "self: path:" or not. - manifest = Manifest.from_data(temp_manifest.read_text('utf-8'), + manifest = Manifest.from_data(temp_manifest.read_text(encoding='utf-8'), import_flags=ImportFlag.IGNORE) if manifest.yaml_path: manifest_path = manifest.yaml_path