mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-23 03:39:33 +00:00
feat(tools): Enforce utf-8 encoding with open() function
This commit is contained in:
@@ -69,7 +69,7 @@ def generate_tests_cases(target): # type: (str) -> None
|
||||
|
||||
messages = [random.randrange(0, 1 << max_key_size) for x in range(NUM_MESSAGES)]
|
||||
|
||||
with open('digital_signature_test_cases.h', 'w') as f:
|
||||
with open('digital_signature_test_cases.h', 'w', encoding='utf-8') as f:
|
||||
f.write('/*\n')
|
||||
year = datetime.datetime.now().year
|
||||
f.write(' * SPDX-FileCopyrightText: {year} Espressif Systems (Shanghai) CO LTD\n'.format(year=year))
|
||||
|
||||
Reference in New Issue
Block a user