mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
feat(tools): Enforce utf-8 encoding with open() function
This commit is contained in:
+1
-1
@@ -67,7 +67,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