mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 17:11:40 -05:00
Use utf-8 explicitly for macro script.
This commit is contained in:
parent
4c2a7025be
commit
d3e2d3dbec
1 changed files with 2 additions and 2 deletions
|
@ -149,7 +149,7 @@ def main():
|
|||
}
|
||||
|
||||
for context in ("background", "content"):
|
||||
with open("src/excmds.ts") as source:
|
||||
with open("src/excmds.ts", encoding="utf-8") as source:
|
||||
output = PRELUDE
|
||||
lines = iter(source)
|
||||
for line in lines:
|
||||
|
@ -162,7 +162,7 @@ def main():
|
|||
else:
|
||||
output += line
|
||||
# print(output.rstrip())
|
||||
with open("src/.excmds_{context}.generated.ts".format(**locals()), "w") as sink:
|
||||
with open("src/.excmds_{context}.generated.ts".format(**locals()), "w", encoding="utf-8") as sink:
|
||||
print(output.rstrip(), file=sink)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue