cmake: kconfig: Treat Kconfig source paths as UTF-8

These may reside on systems that have unicode characters in the
filenames, treat them as such

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae 2024-06-12 12:16:56 +01:00 committed by Anas Nashif
commit 0a590e62e5

View file

@ -398,7 +398,7 @@ if(CREATE_NEW_DOTCONFIG)
endif() endif()
# Read out the list of 'Kconfig' sources that were used by the engine. # Read out the list of 'Kconfig' sources that were used by the engine.
file(STRINGS ${PARSED_KCONFIG_SOURCES_TXT} PARSED_KCONFIG_SOURCES_LIST) file(STRINGS ${PARSED_KCONFIG_SOURCES_TXT} PARSED_KCONFIG_SOURCES_LIST ENCODING UTF-8)
# Force CMAKE configure when the Kconfig sources or configuration files changes. # Force CMAKE configure when the Kconfig sources or configuration files changes.
foreach(kconfig_input foreach(kconfig_input