Skip to content

Commit

Permalink
Add explicit UTF-8 encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
tuokri committed Jun 26, 2024
1 parent 77604bd commit 780fe88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/UDKTests/setup_udk_build_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def state(self, state: State):
def on_any_event(self, event: watchdog.events.FileSystemEvent):
if Path(event.src_path).name == self._log_filename:
print(f"fs event: {event.event_type}, {event.src_path}")
self._fh = open(self._log_file, errors="replace")
self._fh = open(self._log_file, errors="replace", encoding="utf-8")

# TODO: better state handling, this is a mess ATM.
def on_modified(self, event: watchdog.events.FileSystemEvent):
Expand Down

0 comments on commit 780fe88

Please sign in to comment.