Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ascii encoding when locale is not set #643

Merged
merged 3 commits into from
Oct 14, 2024
Merged

Conversation

zhindes
Copy link
Collaborator

@zhindes zhindes commented Oct 10, 2024

What does this Pull Request accomplish?

Fall back to "ascii" encoding if the locale isn't set (and we aren't using utf8 APIs)

Why should this Pull Request be merged?

Closes #641

What testing has been done?

$ poetry run pytest -k internationalization

@zhindes zhindes changed the title return ascii encoding when locale is not set Use ascii encoding when locale is not set Oct 10, 2024
Copy link

github-actions bot commented Oct 10, 2024

Test Results

0 files   -     34  0 suites   - 34   0s ⏱️ - 51m 19s
0 tests  -  2 348  0 ✅  -  1 994  0 💤  -   354  0 ❌ ±0 
0 runs   - 42 272  0 ✅  - 36 020  0 💤  - 6 252  0 ❌ ±0 

Results for commit 62a3cc0. ± Comparison against base commit 12ef705.

♻️ This comment has been updated with latest results.

Copy link
Collaborator

@bkeryan bkeryan left a comment

Choose a reason for hiding this comment

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

Approved with suggestions

src/handwritten/_lib.py Outdated Show resolved Hide resolved
tests/acceptance/test_internationalization.py Outdated Show resolved Hide resolved
@zhindes zhindes enabled auto-merge (squash) October 14, 2024 15:43
@zhindes zhindes merged commit 41cb6ba into master Oct 14, 2024
14 checks passed
@zhindes zhindes deleted the users/zhindes/encoding_fix branch October 14, 2024 15:51
WayneDroid pushed a commit that referenced this pull request Nov 5, 2024
* return ascii encoding when locale is not set
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.

No devices found
2 participants