Skip to content

fix: specify utf-8 encoding when reading README.md in setup.py - #30

Open
mmaxjr wants to merge 1 commit into
daveoncode:masterfrom
mmaxjr:fix/setup-py-utf8-readme-encoding
Open

fix: specify utf-8 encoding when reading README.md in setup.py#30
mmaxjr wants to merge 1 commit into
daveoncode:masterfrom
mmaxjr:fix/setup-py-utf8-readme-encoding

Conversation

@mmaxjr

@mmaxjr mmaxjr commented Jul 31, 2026

Copy link
Copy Markdown

Fixes #17

Problem

README.md has non-ASCII characters, but setup.py opened it without
specifying an encoding, relying on the platform default. In environments
where that default is ASCII (e.g. a minimal Docker image with a C/POSIX
locale, as reported), pip install failed before setup.py could even
finish running:

README.md contains non-ASCII characters, but setup.py opened it with
open()'s platform-default encoding. On systems where that default is
ASCII (e.g. minimal Docker images with a C/POSIX locale), pip install
failed with UnicodeDecodeError before setup.py could even run.

Fixes daveoncode#17

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Install fails with UnicodeDecodeError in some locales

1 participant