mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-26 20:53:11 +00:00
feat(tools): Enforce utf-8 encoding with open() function
This commit is contained in:
@@ -165,7 +165,7 @@ def main():
|
||||
if exc.errno != errno.EEXIST:
|
||||
raise
|
||||
|
||||
with open(output_path, 'w') as f: # only create output file after generation has suceeded
|
||||
with open(output_path, 'w', encoding='utf-8') as f: # only create output file after generation has succeeded
|
||||
f.write(output.read())
|
||||
except LdGenFailure as e:
|
||||
print('linker script generation failed for %s\nERROR: %s' % (input_file.name, e))
|
||||
|
||||
Reference in New Issue
Block a user