zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.48k stars 6.41k forks source link

Twister UTF-8 encoding for all reading and writing files #76517

Open pavlohav opened 1 month ago

pavlohav commented 1 month ago

Is your enhancement proposal related to a problem? Please describe.

This enhancement relates to the issue that some files that will be written to disk during the testing process can result in being encoded in ascii instead of utf-8. This is a larger issue on windows than any linux based machine due to python defaulting to ascii on windows.

Describe the solution you'd like

Make the default for all text files R/W through python's open function to be marked as encoding=utf-8

Describe alternatives you've considered

Setting the utf-8 encoding to be global for zephyr is another option but I do not know what hidden issues that could cause. This could be done within the python virtual environment.

github-actions[bot] commented 1 month ago

Hi @pavlohav! We appreciate you submitting your first issue for our open-source project. 🌟

Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙