Update dependency chardet to v7.4.2 #87

Merged
timatlee merged 1 commits from renovate/chardet-7.x into main 2026-04-13 07:20:39 -06:00
Collaborator

This PR contains the following updates:

Package Update Change
chardet (changelog) patch ==7.4.1==7.4.2

Release Notes

chardet/chardet (chardet)

v7.4.2

Compare Source

Patch release: fixes a crash on short inputs and closes a bunch of WHATWG/IANA alias gaps.

Bug Fixes

  • Fixed RuntimeError: pipeline must always return at least one result on ~2% of all possible two-byte inputs (e.g. b"\xf9\x92"). Multi-byte encodings like CP932 and Johab could score above the structural confidence threshold on very short inputs, but then statistical scoring would return nothing, leaving an empty result list instead of falling through to the fallback. (#​367, #​368, thanks @​jasonwbarnett)

Improvements

  • Added ~90 encoding aliases from the WHATWG Encoding Standard and IANA Character Sets registry so that <meta charset> labels like x-cp1252, x-sjis, dos-874, csUTF8, and the cswindows* family all resolve correctly through the markup detection stage. Every alias was driven by a failing spec-compliance test, not speculative. (#​366)
  • Added a spec-compliance test suite covering Python decode round-trips for all 86 registry encodings, WHATWG label resolution, IANA preferred MIME names, and Unicode/RFC conformance (BOM sniffing, UTF-8 boundary cases, UTF-16 surrogate pairs). This is the test suite that would have caught the 7.4.1 BOM bug before release. (#​366)

Full Changelog: https://github.com/chardet/chardet/compare/7.4.1...7.4.2


Configuration

📅 Schedule: (in timezone America/Edmonton)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Update | Change | |---|---|---| | [chardet](https://github.com/chardet/chardet) ([changelog](https://chardet.readthedocs.io/en/latest/changelog.html)) | patch | `==7.4.1` → `==7.4.2` | --- ### Release Notes <details> <summary>chardet/chardet (chardet)</summary> ### [`v7.4.2`](https://github.com/chardet/chardet/releases/tag/7.4.2) [Compare Source](https://github.com/chardet/chardet/compare/7.4.1...7.4.2) Patch release: fixes a crash on short inputs and closes a bunch of WHATWG/IANA alias gaps. #### Bug Fixes - Fixed `RuntimeError: pipeline must always return at least one result` on \~2% of all possible two-byte inputs (e.g. `b"\xf9\x92"`). Multi-byte encodings like CP932 and Johab could score above the structural confidence threshold on very short inputs, but then statistical scoring would return nothing, leaving an empty result list instead of falling through to the fallback. ([#&#8203;367](https://github.com/chardet/chardet/issues/367), [#&#8203;368](https://github.com/chardet/chardet/issues/368), thanks [@&#8203;jasonwbarnett](https://github.com/jasonwbarnett)) #### Improvements - Added \~90 encoding aliases from the WHATWG Encoding Standard and IANA Character Sets registry so that `<meta charset>` labels like `x-cp1252`, `x-sjis`, `dos-874`, `csUTF8`, and the `cswindows*` family all resolve correctly through the markup detection stage. Every alias was driven by a failing spec-compliance test, not speculative. ([#&#8203;366](https://github.com/chardet/chardet/issues/366)) - Added a spec-compliance test suite covering Python decode round-trips for all 86 registry encodings, WHATWG label resolution, IANA preferred MIME names, and Unicode/RFC conformance (BOM sniffing, UTF-8 boundary cases, UTF-16 surrogate pairs). This is the test suite that would have caught the 7.4.1 BOM bug before release. ([#&#8203;366](https://github.com/chardet/chardet/issues/366)) **Full Changelog**: <https://github.com/chardet/chardet/compare/7.4.1...7.4.2> </details> --- ### Configuration 📅 **Schedule**: (in timezone America/Edmonton) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xMTEuMCIsInVwZGF0ZWRJblZlciI6IjQzLjExMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
renovate-bot added 1 commit 2026-04-12 20:00:16 -06:00
Update dependency chardet to v7.4.2
Build Docker Image / build (pull_request) Successful in 3m39s
9acd74c7c7
timatlee merged commit de67b26fcb into main 2026-04-13 07:20:39 -06:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: timatlee/cloudflare-ddns-docker-updated#87