Skip to content

Commit

Permalink
Fix unicode error on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Nov 29, 2024
1 parent c69936f commit 84e9b68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions auto_editor/subcommands/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ def main(sys_args: list[str] = sys.argv[1:]) -> None:
file_info[file]["subtitle"].append(sub)

if args.json:
if sys.platform == "win32":
sys.stdout.reconfigure(encoding="utf-8")
dump(file_info, sys.stdout, indent=4)
return

Expand Down

0 comments on commit 84e9b68

Please sign in to comment.