Skip to content

Conversation

@dlech
Copy link
Member

@dlech dlech commented Aug 7, 2025

Ensure that text files are opened with UTF-8 encoding by default to avoid issues with different default encodings. This also requires updating some dependencies that also had issues with text encoding.

PYTHONWARNDEFAULTENCODING is set for tests to try to catch any future issues with text encoding. And PYTHONDEVMODE is set for good measure.

@dlech dlech force-pushed the explicit-text-encoding branch from d60553a to 17e7944 Compare August 7, 2025 22:14
dlech added 2 commits August 7, 2025 17:26
Ensure that text files are opened with UTF-8 encoding by default to
avoid issues with different default encodings. This also requires
updating some dependencies that also had issues with text encoding.

PYTHONWARNDEFAULTENCODING is set for tests to try to catch any future
issues with text encoding. And PYTHONDEVMODE is set for good measure.
Ensure opened file is closed before the test ends.
@dlech dlech force-pushed the explicit-text-encoding branch 2 times, most recently from 4626d0b to 939d618 Compare August 7, 2025 22:57
@dlech dlech force-pushed the explicit-text-encoding branch from 939d618 to 53676ab Compare August 7, 2025 22:59
@dlech dlech merged commit f2ae77a into pybricks:master Aug 7, 2025
7 checks passed
@dlech dlech deleted the explicit-text-encoding branch August 7, 2025 23:01
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.

1 participant