scripts: size_report: fix encoding issue

Force default stdout encoding to utf-8 as otherwise ram_report/rom_report
may fail to render (ex. in CLion IDE built-in terminal).

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
Benjamin Cabé 2023-08-23 16:21:27 +02:00 committed by Fabio Baltieri
commit ef0fd13090

View file

@ -737,6 +737,8 @@ def main():
"""
parse_args()
sys.stdout.reconfigure(encoding='utf-8')
# Init colorama
init()