NCS v3.4.0, peripheral_uart example, double bytes Windows, UTF-8 issue

Hi,

NCS v3.4.0

BLE peripheral_uart example

nrf54l15 DK with ns config

in the Chinese (double bytes) Windows, need to add encoding="utf-8" in tfm_parse_manifest_list.py to avoid the python parse error.

The console messages are as the follows:

-- Found Python3: C:/ncs/toolchains/dcbdc366a1/opt/bin/python.exe (found version "3.12.4") found components: Interpreter
Traceback (most recent call last):
  File "C:\ncs\v3.4.0\modules\tee\tf-m\trusted-firmware-m\tools\tfm_parse_manifest_list.py", line 933, in <module>
    sys.exit(main())
             ^^^^^^
  File "C:\ncs\v3.4.0\modules\tee\tf-m\trusted-firmware-m\tools\tfm_parse_manifest_list.py", line 930, in main
    gen_summary_files(context, gen_file_lists)
  File "C:\ncs\v3.4.0\modules\tee\tf-m\trusted-firmware-m\tools\tfm_parse_manifest_list.py", line 725, in gen_summary_files
    template = ENV.get_template(templatefile_name)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ncs\toolchains\dcbdc366a1\opt\bin\Lib\site-packages\jinja2\environment.py", line 1016, in get_template
    return self._load_template(name, globals)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ncs\toolchains\dcbdc366a1\opt\bin\Lib\site-packages\jinja2\environment.py", line 975, in _load_template
    template = self.loader.load(self, name, self.make_globals(globals))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ncs\toolchains\dcbdc366a1\opt\bin\Lib\site-packages\jinja2\loaders.py", line 126, in load
    source, filename, uptodate = self.get_source(environment, name)
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ncs\v3.4.0\modules\tee\tf-m\trusted-firmware-m\tools\tfm_parse_manifest_list.py", line 80, in get_source
    source = f.read()
             ^^^^^^^^
UnicodeDecodeError: 'cp950' codec can't decode byte 0xe2 in position 1906: illegal multibyte sequence
CMake Error at tools/CMakeLists.txt:182 (message):
  Manifest tool failed to generate files!

Related