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

Fixes #284. Add UTF-8 encoding to subprocess.run in run_command #285

Merged
merged 2 commits into from
Jan 30, 2025

Conversation

coordt
Copy link
Member

@coordt coordt commented Jan 27, 2025

Explicitly set the encoding to "utf-8" in the subprocess.run call to ensure consistent handling of command output. This prevents potential encoding-related issues when processing command results.

Explicitly set the encoding to "utf-8" in the subprocess.run call to ensure consistent handling of command output. This prevents potential encoding-related issues when processing command results.
Copy link

Version hint: patch
Current version: 0.30.0
New version (when merged): 0.30.1

Comment ID: Display the version hint-auto-generated

Copy link

github-actions bot commented Jan 27, 2025

PR Preview Action v1.6.0

🚀 View preview at
https://callowayproject.github.io/bump-my-version/pr-preview/pr-285/

Built to branch gh-pages at 2025-01-27 19:22 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Copy link

codecov bot commented Jan 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.49%. Comparing base (5a4e763) to head (cd2b193).
Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #285      +/-   ##
==========================================
- Coverage   93.54%   93.49%   -0.06%     
==========================================
  Files          28       28              
  Lines        1828     1828              
  Branches      195      284      +89     
==========================================
- Hits         1710     1709       -1     
  Misses         91       91              
- Partials       27       28       +1     
Flag Coverage Δ
python-3.10 93.49% <100.00%> (-0.06%) ⬇️
python-3.11 93.49% <100.00%> (-0.06%) ⬇️
python-3.12 93.49% <100.00%> (-0.06%) ⬇️
python-3.13 93.49% <100.00%> (-0.06%) ⬇️
python-3.9 93.49% <100.00%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@coordt coordt merged commit cfd0b69 into master Jan 30, 2025
16 of 17 checks passed
@coordt coordt deleted the 284-enforce-utf8-encoding branch January 30, 2025 12:25
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.

Tagging using git fails with UnicodeDecodeError if Python's default encoding is "cp950"
1 participant