Skip to content
Permalink
Browse files

west: Load CMakeCache.txt as a UTF-8 encoded file

CMake has been using UTF-8 as an encoding for CMakeCache.txt since 3.2.

Fixes #17635

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
  • Loading branch information...
carlescufi committed Jul 18, 2019
1 parent 3ad1f27 commit 9754201e04dca9f5455baa411474440ab1401b50
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripts/west_commands/zcmake.py
@@ -213,7 +213,7 @@ def __init__(self, cache_file):

def load(self, cache_file):
entries = []
with open(cache_file, 'r') as cache:
with open(cache_file, 'r', encoding="utf-8") as cache:
for line_no, line in enumerate(cache):
entry = CMakeCacheEntry.from_line(line, line_no)
if entry:

0 comments on commit 9754201

Please sign in to comment.
You can’t perform that action at this time.