Skip to content

fix: pin charset-normalizer to <3 to fix Big5 encoding detection (#1628)#1824

Open
parinporecha wants to merge 1 commit intohttpie:masterfrom
parinporecha:fix/issue-1628
Open

fix: pin charset-normalizer to <3 to fix Big5 encoding detection (#1628)#1824
parinporecha wants to merge 1 commit intohttpie:masterfrom
parinporecha:fix/issue-1628

Conversation

@parinporecha
Copy link
Copy Markdown

charset-normalizer 3.x changed its detection algorithm, causing Big5-encoded Chinese text to be misdetected as johab (Korean). This breaks the test_terminal_output_response_charset_detection and test_terminal_output_request_charset_detection tests for Big5.

Pin to charset-normalizer>=2.0.0,<3.0.0 until the upstream ranking regression is resolved.

Fixes #1628

…pie#1628)

charset-normalizer 3.x changed its detection algorithm, causing Big5-encoded
Chinese text to be misdetected as johab (Korean). This breaks the
test_terminal_output_response_charset_detection and
test_terminal_output_request_charset_detection tests for Big5.

Pin to charset-normalizer>=2.0.0,<3.0.0 until the upstream ranking
regression is resolved.

Fixes httpie#1628
@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.11%. Comparing base (4d7d6b6) to head (60b5274).
⚠️ Report is 383 commits behind head on master.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1824      +/-   ##
==========================================
- Coverage   97.28%   94.11%   -3.18%     
==========================================
  Files          67      113      +46     
  Lines        4235     7694    +3459     
==========================================
+ Hits         4120     7241    +3121     
- Misses        115      453     +338     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

Test failures with the latest charset-normalizer

2 participants