Skip to content

Commit

Permalink
Fix Windows build.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewdouglas authored Nov 14, 2024
1 parent 9568735 commit 9264f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
return open(os.path.join(os.path.dirname(__file__), fname), encoding="utf8").read()


# Tested with wheel v0.29.0
Expand Down

1 comment on commit 9264f02

@akx
Copy link
Contributor

@akx akx commented on 9264f02 Nov 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to just set the PYTHONUTF8=1 envvar to enable UTF-8 mode.

Please sign in to comment.