Repository navigation
fix(encoding): detect 7-bit content with control characters as ASCII - #629
Merged
klaernie merged 1 commit intoSep 16, 2026
Merged
Conversation
A file that is plain ASCII apart from a C0 control character, such as the ESC of an ANSI color code, was reported as ISO-8859-1. With charset = utf-8 in .editorconfig that fails the check, even though 7-bit content is valid ASCII and so valid UTF-8. The ASCII branch required the content to hold no C0 character at all, and anything else without a byte >= 0x80 fell through to ISO-8859-1. Report ASCII whenever no byte is >= 0x80 instead. ISO-2022 family encodings are 7-bit too, so a positive detection of one of those is kept when a decoder exists for it, which also stops the old branch from relabelling real ISO-2022-JP files as ISO-8859-1. Fixes editorconfig-checker#627
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #629 +/- ##
=======================================
Coverage 91.88% 91.89%
=======================================
Files 12 12
Lines 1146 1147 +1
=======================================
+ Hits 1053 1054 +1
Misses 93 93 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
anandghegde
force-pushed
the
fix/ascii-with-control-chars
branch
from
September 15, 2026 16:38
c9c5c07 to
eb3aca8
Compare
klaernie
approved these changes
Sep 15, 2026
klaernie
left a comment
Member
There was a problem hiding this comment.
Looks good to me, I think we iterate with every PR closer to the ideal solution.
theoludwig
approved these changes
Sep 16, 2026
This was referenced Sep 21, 2026
jylenhof
pushed a commit
to jylenhof/mise-update-tool
that referenced
this pull request
Sep 22, 2026
Automated mise tool upgrades from local config. mise-managed tools: - `action-validator` - `actionlint` - `aube` - `editorconfig-checker` - `ghalint` - `pinact` - `pipx:gh-action-pulse` - `prek` - `rumdl` - `shellcheck` - `shfmt` - `tombi` - `uv` - `yamlfmt` - `yamllint` - `zizmor` Command: `mise upgrade --bump --local action-validator actionlint aube editorconfig-checker ghalint pinact pipx:gh-action-pulse prek rumdl shellcheck shfmt tombi uv yamlfmt yamllint zizmor` <details> <summary>Version changelog (3 tools)</summary> | Tool | Requested | Installed | |------|-----------|-----------| | `editorconfig-checker` | `4.0.1` → `4.0.2` | `4.0.1` → `4.0.2` | | `rumdl` | `0.2.73` → `0.2.74` | `0.2.73` → `0.2.74` | | `uv` | `0.12.15` → `0.12.17` | `0.12.15` → `0.12.17` | </details> <details> <summary>Release notes (3 tools)</summary> <details> <summary>editorconfig-checker: `4.0.1` → `4.0.2` (editorconfig-checker/editorconfig-checker)</summary> ### v4.0.2 ## [4.0.2](editorconfig-checker/editorconfig-checker@v4.0.1...v4.0.2) (2026-09-16) ### Bug Fixes * **encoding:** detect 7-bit content with control characters as ASCII ([#629](editorconfig-checker/editorconfig-checker#629)) ([289dc53](editorconfig-checker/editorconfig-checker@289dc53)), closes [#627](editorconfig-checker/editorconfig-checker#627) * keep the file's existing line ending when adding a final newline ([#622](editorconfig-checker/editorconfig-checker#622)) ([cea460f](editorconfig-checker/editorconfig-checker@cea460f)) </details> <details> <summary>rumdl: `0.2.73` → `0.2.74` (rvben/rumdl)</summary> ### v0.2.74 ### Added - **code-block-tools**: add explicit rumdl, oxfmt, djlint, and shuck modes ([77f0e55](rvben/rumdl@77f0e55)) ### Fixed - **MD092**: allow scoped suppression of documented conflicts ([6f9a6cb](rvben/rumdl@6f9a6cb)) - **MD032**: keep parent list items open after nested lists ([952c507](rvben/rumdl@952c507)) - **MD026**: delete a setext heading's trailing punctuation where it stands ([7f0981c](rvben/rumdl@7f0981c)) - **parser**: keep link reference definitions out of a setext heading ([80fdfc3](rvben/rumdl@80fdfc3)) - **parser**: read the whole paragraph as a setext heading ([5d7b046](rvben/rumdl@5d7b046)) - **parser**: lint the headings a short or quoted setext underline makes ([e183924](rvben/rumdl@e183924)) - **parser**: keep a container open below a block written inside it ([e2c13b7](rvben/rumdl@e2c13b7)) - **parser**: read an empty list item under a paragraph as its text ([68a04ae](rvben/rumdl@68a04ae)) - **MD013**: write one space at a soft break after a trailing space ([6388794](rvben/rumdl@6388794)) - **MD013**: keep a whole-line display math expression on its own line ([cc518ab](rvben/rumdl@cc518ab)) - **MD013**: read no math span through a code span ([f069246](rvben/rumdl@f069246)) - **MD013**: keep a definition-list marker written on its o… (truncated) </details> <details> <summary>uv: `0.12.15` → `0.12.17` (astral-sh/uv)</summary> ### 0.12.16 ## Release Notes Released on 2026-09-17. ### Python - Add Pyodide 314.0.7, 0.29.5, and 0.27.8 ([#21741](astral-sh/uv#21741)) ### Enhancements - Verify downloaded wheels and source distributions against hashes supplied by package indexes ([#21562](astral-sh/uv#21562)) - Allow `build-constraint-dependencies` entries to include hashes for verifying downloaded build dependencies ([#21467](astral-sh/uv#21467)) - Honor Darwin `platform_release` markers in `required-environments` using macOS wheel deployment targets ([#21766](astral-sh/uv#21766)) - Reject unsupported Git URL schemes while parsing lockfiles instead of panicking during frozen exports ([#21779](astral-sh/uv#21779)) ### Preview features - Support `lock-without-metadata` across all dependency types while retaining `package.metadata` for remote URL dependencies to enable offline validation ([#21163](astral-sh/uv#21163)) - Honor configured and command-line index settings, including credentials, in `uv upgrade` ([#21776](astral-sh/uv#21776)) - Allow `uv check` to run in projects that are not managed by uv and outside workspaces ([#21777](astral-sh/uv#21777)) - Respect `--python` and `UV_PYTHON` when selecting the Python version for `uv check` ([#21744](astral-sh/uv#21744)) ### Bug fixes - Redact Azure shared access signatures from displayed and logged URLs ([#21755](astral-sh/uv#21755)) - Check archive sizes from `pylock.toml` before reusing cached distributions ([#21609](astral-sh/uv#21609)) - Keep user-authored local dependency paths relative in lockfiles when backend metadata reports absolute paths ([#20631](astral-sh/uv#20631)) - Use the bundled `uv_build` backend only when its version matches active versi… (truncated) ### 0.12.17 ## Release Notes Released on 2026-09-18. ### Enhancements - Reject unsupported Git archive paths in lockfiles with a clear error instead of panicking during frozen exports ([#21780](astral-sh/uv#21780)) ### Preview features - Set minimum glibc and musl versions that universal resolutions must support with `minimum-libc-version` ([#21651](astral-sh/uv#21651)) - Reject `pylock.toml` files whose wheel filenames do not match their declared package names or versions ([#20746](astral-sh/uv#20746)) - Keep `uv workspace metadata` read-only unless `--sync` is provided ([#21821](astral-sh/uv#21821)) - Apply `uv check` lock modes when retrieving workspace metadata ([#21821](astral-sh/uv#21821)) ### Performance - Speed up builds with many exclusion patterns by avoiding quadratic deduplication ([#21650](astral-sh/uv#21650)) - Reduce resolver allocations when deduplicating package and distribution requests ([#21810](astral-sh/uv#21810)) ### Bug fixes - Prevent `required-environments` from selecting package versions whose wheels require a newer macOS version than the configured Darwin baseline ([#21825](astral-sh/uv#21825)) ### Documentation - Clarify the 0.12.14 and 0.12.15 release notes ([#21817](astral-sh/uv#21817)) ## Install uv 0.12.17 ### Install prebuilt binaries via shell script ```sh curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/uv/releases/download/0.12.17/uv-installer.sh | sh ``` ### Install prebuilt binaries via powershell script ```sh powershell -ExecutionPolicy Bypass -c "irm https://releases.astral.sh/github/uv/releases/download/0.12.17/uv-installer.ps1 | iex" ``` ## Download uv 0.12.17 | File | Platform | Checksum | |--------|----------|----------| | [uv-aarch64-apple-darwin.tar.gz](https://rele… (truncated) </details> </details> Modified files: - `.mise.toml` Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
jylenhof
pushed a commit
to jylenhof/gh-action-pulse
that referenced
this pull request
Sep 22, 2026
Automated mise tool upgrades from local config. mise-managed tools: - `editorconfig-checker` Command: `mise upgrade --bump --local editorconfig-checker` <details> <summary>Version changelog (editorconfig-checker)</summary> | Tool | Requested | Installed | |------|-----------|-----------| | `editorconfig-checker` | `4.0.1` → `4.0.2` | `4.0.1` → `4.0.2` | </details> <details> <summary>Release notes (1 tools)</summary> <details> <summary>editorconfig-checker: `4.0.1` → `4.0.2` (editorconfig-checker/editorconfig-checker)</summary> ### v4.0.2 ## [4.0.2](editorconfig-checker/editorconfig-checker@v4.0.1...v4.0.2) (2026-09-16) ### Bug Fixes * **encoding:** detect 7-bit content with control characters as ASCII ([#629](editorconfig-checker/editorconfig-checker#629)) ([289dc53](editorconfig-checker/editorconfig-checker@289dc53)), closes [#627](editorconfig-checker/editorconfig-checker#627) * keep the file's existing line ending when adding a final newline ([#622](editorconfig-checker/editorconfig-checker#622)) ([cea460f](editorconfig-checker/editorconfig-checker@cea460f)) </details> </details> Modified files: - `.mise.toml` Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
jylenhof
pushed a commit
to jylenhof/github-actions-resources
that referenced
this pull request
Sep 22, 2026
Automated mise tool upgrades from local config. mise-managed tools: - `action-validator` - `actionlint` - `editorconfig-checker` - `ghalint` - `lychee` - `pinact` - `pipx:gh-action-pulse` - `prek` - `rumdl` - `shellcheck` - `shfmt` - `tombi` - `uv` - `yamlfmt` - `yamllint` - `zizmor` Command: `mise upgrade --bump --local action-validator actionlint editorconfig-checker ghalint lychee pinact pipx:gh-action-pulse prek rumdl shellcheck shfmt tombi uv yamlfmt yamllint zizmor` <details> <summary>Version changelog (3 tools)</summary> | Tool | Requested | Installed | |------|-----------|-----------| | `editorconfig-checker` | `4.0.1` → `4.0.2` | `4.0.1` → `4.0.2` | | `rumdl` | `0.2.73` → `0.2.74` | `0.2.73` → `0.2.74` | | `uv` | `0.12.15` → `0.12.17` | `0.12.15` → `0.12.17` | </details> <details> <summary>Release notes (3 tools)</summary> <details> <summary>editorconfig-checker: `4.0.1` → `4.0.2` (editorconfig-checker/editorconfig-checker)</summary> ### v4.0.2 ## [4.0.2](editorconfig-checker/editorconfig-checker@v4.0.1...v4.0.2) (2026-09-16) ### Bug Fixes * **encoding:** detect 7-bit content with control characters as ASCII ([#629](editorconfig-checker/editorconfig-checker#629)) ([289dc53](editorconfig-checker/editorconfig-checker@289dc53)), closes [#627](editorconfig-checker/editorconfig-checker#627) * keep the file's existing line ending when adding a final newline ([#622](editorconfig-checker/editorconfig-checker#622)) ([cea460f](editorconfig-checker/editorconfig-checker@cea460f)) </details> <details> <summary>rumdl: `0.2.73` → `0.2.74` (rvben/rumdl)</summary> ### v0.2.74 ### Added - **code-block-tools**: add explicit rumdl, oxfmt, djlint, and shuck modes ([77f0e55](rvben/rumdl@77f0e55)) ### Fixed - **MD092**: allow scoped suppression of documented conflicts ([6f9a6cb](rvben/rumdl@6f9a6cb)) - **MD032**: keep parent list items open after nested lists ([952c507](rvben/rumdl@952c507)) - **MD026**: delete a setext heading's trailing punctuation where it stands ([7f0981c](rvben/rumdl@7f0981c)) - **parser**: keep link reference definitions out of a setext heading ([80fdfc3](rvben/rumdl@80fdfc3)) - **parser**: read the whole paragraph as a setext heading ([5d7b046](rvben/rumdl@5d7b046)) - **parser**: lint the headings a short or quoted setext underline makes ([e183924](rvben/rumdl@e183924)) - **parser**: keep a container open below a block written inside it ([e2c13b7](rvben/rumdl@e2c13b7)) - **parser**: read an empty list item under a paragraph as its text ([68a04ae](rvben/rumdl@68a04ae)) - **MD013**: write one space at a soft break after a trailing space ([6388794](rvben/rumdl@6388794)) - **MD013**: keep a whole-line display math expression on its own line ([cc518ab](rvben/rumdl@cc518ab)) - **MD013**: read no math span through a code span ([f069246](rvben/rumdl@f069246)) - **MD013**: keep a definition-list marker written on its o… (truncated) </details> <details> <summary>uv: `0.12.15` → `0.12.17` (astral-sh/uv)</summary> ### 0.12.16 ## Release Notes Released on 2026-09-17. ### Python - Add Pyodide 314.0.7, 0.29.5, and 0.27.8 ([#21741](astral-sh/uv#21741)) ### Enhancements - Verify downloaded wheels and source distributions against hashes supplied by package indexes ([#21562](astral-sh/uv#21562)) - Allow `build-constraint-dependencies` entries to include hashes for verifying downloaded build dependencies ([#21467](astral-sh/uv#21467)) - Honor Darwin `platform_release` markers in `required-environments` using macOS wheel deployment targets ([#21766](astral-sh/uv#21766)) - Reject unsupported Git URL schemes while parsing lockfiles instead of panicking during frozen exports ([#21779](astral-sh/uv#21779)) ### Preview features - Support `lock-without-metadata` across all dependency types while retaining `package.metadata` for remote URL dependencies to enable offline validation ([#21163](astral-sh/uv#21163)) - Honor configured and command-line index settings, including credentials, in `uv upgrade` ([#21776](astral-sh/uv#21776)) - Allow `uv check` to run in projects that are not managed by uv and outside workspaces ([#21777](astral-sh/uv#21777)) - Respect `--python` and `UV_PYTHON` when selecting the Python version for `uv check` ([#21744](astral-sh/uv#21744)) ### Bug fixes - Redact Azure shared access signatures from displayed and logged URLs ([#21755](astral-sh/uv#21755)) - Check archive sizes from `pylock.toml` before reusing cached distributions ([#21609](astral-sh/uv#21609)) - Keep user-authored local dependency paths relative in lockfiles when backend metadata reports absolute paths ([#20631](astral-sh/uv#20631)) - Use the bundled `uv_build` backend only when its version matches active versi… (truncated) ### 0.12.17 ## Release Notes Released on 2026-09-18. ### Enhancements - Reject unsupported Git archive paths in lockfiles with a clear error instead of panicking during frozen exports ([#21780](astral-sh/uv#21780)) ### Preview features - Set minimum glibc and musl versions that universal resolutions must support with `minimum-libc-version` ([#21651](astral-sh/uv#21651)) - Reject `pylock.toml` files whose wheel filenames do not match their declared package names or versions ([#20746](astral-sh/uv#20746)) - Keep `uv workspace metadata` read-only unless `--sync` is provided ([#21821](astral-sh/uv#21821)) - Apply `uv check` lock modes when retrieving workspace metadata ([#21821](astral-sh/uv#21821)) ### Performance - Speed up builds with many exclusion patterns by avoiding quadratic deduplication ([#21650](astral-sh/uv#21650)) - Reduce resolver allocations when deduplicating package and distribution requests ([#21810](astral-sh/uv#21810)) ### Bug fixes - Prevent `required-environments` from selecting package versions whose wheels require a newer macOS version than the configured Darwin baseline ([#21825](astral-sh/uv#21825)) ### Documentation - Clarify the 0.12.14 and 0.12.15 release notes ([#21817](astral-sh/uv#21817)) ## Install uv 0.12.17 ### Install prebuilt binaries via shell script ```sh curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/uv/releases/download/0.12.17/uv-installer.sh | sh ``` ### Install prebuilt binaries via powershell script ```sh powershell -ExecutionPolicy Bypass -c "irm https://releases.astral.sh/github/uv/releases/download/0.12.17/uv-installer.ps1 | iex" ``` ## Download uv 0.12.17 | File | Platform | Checksum | |--------|----------|----------| | [uv-aarch64-apple-darwin.tar.gz](https://rele… (truncated) </details> </details> Modified files: - `.mise.toml` Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
jylenhof
pushed a commit
to jylenhof/mise-en-place-tips
that referenced
this pull request
Sep 23, 2026
Automated mise tool upgrades from local config. mise-managed tools: - `editorconfig-checker` Command: `mise upgrade --bump --local editorconfig-checker` <details> <summary>Version changelog (editorconfig-checker)</summary> | Tool | Requested | Installed | |------|-----------|-----------| | `editorconfig-checker` | `4.0.1` → `4.0.2` | `4.0.1` → `4.0.2` | </details> <details> <summary>Release notes (1 tools)</summary> <details> <summary>editorconfig-checker: `4.0.1` → `4.0.2` (editorconfig-checker/editorconfig-checker)</summary> ### v4.0.2 ## [4.0.2](editorconfig-checker/editorconfig-checker@v4.0.1...v4.0.2) (2026-09-16) ### Bug Fixes * **encoding:** detect 7-bit content with control characters as ASCII ([#629](editorconfig-checker/editorconfig-checker#629)) ([289dc53](editorconfig-checker/editorconfig-checker@289dc53)), closes [#627](editorconfig-checker/editorconfig-checker#627) * keep the file's existing line ending when adding a final newline ([#622](editorconfig-checker/editorconfig-checker#622)) ([cea460f](editorconfig-checker/editorconfig-checker@cea460f)) </details> </details> Modified files: - `.mise.toml`
jylenhof
pushed a commit
to jylenhof/mise-en-place-tips
that referenced
this pull request
Sep 23, 2026
Automated mise tool upgrades from local config. mise-managed tools: - `editorconfig-checker` Command: `mise upgrade --bump --local editorconfig-checker` <details> <summary>Version changelog (editorconfig-checker)</summary> | Tool | Requested | Installed | |------|-----------|-----------| | `editorconfig-checker` | `4.0.1` → `4.0.2` | `4.0.1` → `4.0.2` | </details> <details> <summary>Release notes (1 tools)</summary> <details> <summary>editorconfig-checker: `4.0.1` → `4.0.2` (editorconfig-checker/editorconfig-checker)</summary> ### v4.0.2 ## [4.0.2](editorconfig-checker/editorconfig-checker@v4.0.1...v4.0.2) (2026-09-16) ### Bug Fixes * **encoding:** detect 7-bit content with control characters as ASCII ([#629](editorconfig-checker/editorconfig-checker#629)) ([289dc53](editorconfig-checker/editorconfig-checker@289dc53)), closes [#627](editorconfig-checker/editorconfig-checker#627) * keep the file's existing line ending when adding a final newline ([#622](editorconfig-checker/editorconfig-checker#622)) ([cea460f](editorconfig-checker/editorconfig-checker@cea460f)) </details> </details> Modified files: - `.mise.toml` Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
jylenhof
pushed a commit
to jylenhof/mise-en-place-resources
that referenced
this pull request
Sep 23, 2026
Automated mise tool upgrades from local config. mise-managed tools: - `action-validator` - `actionlint` - `editorconfig-checker` - `ghalint` - `lychee` - `pinact` - `pipx:gh-action-pulse` - `prek` - `rumdl` - `shellcheck` - `shfmt` - `tombi` - `uv` - `yamlfmt` - `yamllint` - `zizmor` Command: `mise upgrade --bump --local action-validator actionlint editorconfig-checker ghalint lychee pinact pipx:gh-action-pulse prek rumdl shellcheck shfmt tombi uv yamlfmt yamllint zizmor` <details> <summary>Version changelog (3 tools)</summary> | Tool | Requested | Installed | |------|-----------|-----------| | `editorconfig-checker` | `4.0.1` → `4.0.2` | `4.0.1` → `4.0.2` | | `rumdl` | `0.2.73` → `0.2.74` | `0.2.73` → `0.2.74` | | `uv` | `0.12.15` → `0.12.17` | `0.12.15` → `0.12.17` | </details> <details> <summary>Release notes (3 tools)</summary> <details> <summary>editorconfig-checker: `4.0.1` → `4.0.2` (editorconfig-checker/editorconfig-checker)</summary> ### v4.0.2 ## [4.0.2](editorconfig-checker/editorconfig-checker@v4.0.1...v4.0.2) (2026-09-16) ### Bug Fixes * **encoding:** detect 7-bit content with control characters as ASCII ([#629](editorconfig-checker/editorconfig-checker#629)) ([289dc53](editorconfig-checker/editorconfig-checker@289dc53)), closes [#627](editorconfig-checker/editorconfig-checker#627) * keep the file's existing line ending when adding a final newline ([#622](editorconfig-checker/editorconfig-checker#622)) ([cea460f](editorconfig-checker/editorconfig-checker@cea460f)) </details> <details> <summary>rumdl: `0.2.73` → `0.2.74` (rvben/rumdl)</summary> ### v0.2.74 ### Added - **code-block-tools**: add explicit rumdl, oxfmt, djlint, and shuck modes ([77f0e55](rvben/rumdl@77f0e55)) ### Fixed - **MD092**: allow scoped suppression of documented conflicts ([6f9a6cb](rvben/rumdl@6f9a6cb)) - **MD032**: keep parent list items open after nested lists ([952c507](rvben/rumdl@952c507)) - **MD026**: delete a setext heading's trailing punctuation where it stands ([7f0981c](rvben/rumdl@7f0981c)) - **parser**: keep link reference definitions out of a setext heading ([80fdfc3](rvben/rumdl@80fdfc3)) - **parser**: read the whole paragraph as a setext heading ([5d7b046](rvben/rumdl@5d7b046)) - **parser**: lint the headings a short or quoted setext underline makes ([e183924](rvben/rumdl@e183924)) - **parser**: keep a container open below a block written inside it ([e2c13b7](rvben/rumdl@e2c13b7)) - **parser**: read an empty list item under a paragraph as its text ([68a04ae](rvben/rumdl@68a04ae)) - **MD013**: write one space at a soft break after a trailing space ([6388794](rvben/rumdl@6388794)) - **MD013**: keep a whole-line display math expression on its own line ([cc518ab](rvben/rumdl@cc518ab)) - **MD013**: read no math span through a code span ([f069246](rvben/rumdl@f069246)) - **MD013**: keep a definition-list marker written on its o… (truncated) </details> <details> <summary>uv: `0.12.15` → `0.12.17` (astral-sh/uv)</summary> ### 0.12.16 ## Release Notes Released on 2026-09-17. ### Python - Add Pyodide 314.0.7, 0.29.5, and 0.27.8 ([#21741](astral-sh/uv#21741)) ### Enhancements - Verify downloaded wheels and source distributions against hashes supplied by package indexes ([#21562](astral-sh/uv#21562)) - Allow `build-constraint-dependencies` entries to include hashes for verifying downloaded build dependencies ([#21467](astral-sh/uv#21467)) - Honor Darwin `platform_release` markers in `required-environments` using macOS wheel deployment targets ([#21766](astral-sh/uv#21766)) - Reject unsupported Git URL schemes while parsing lockfiles instead of panicking during frozen exports ([#21779](astral-sh/uv#21779)) ### Preview features - Support `lock-without-metadata` across all dependency types while retaining `package.metadata` for remote URL dependencies to enable offline validation ([#21163](astral-sh/uv#21163)) - Honor configured and command-line index settings, including credentials, in `uv upgrade` ([#21776](astral-sh/uv#21776)) - Allow `uv check` to run in projects that are not managed by uv and outside workspaces ([#21777](astral-sh/uv#21777)) - Respect `--python` and `UV_PYTHON` when selecting the Python version for `uv check` ([#21744](astral-sh/uv#21744)) ### Bug fixes - Redact Azure shared access signatures from displayed and logged URLs ([#21755](astral-sh/uv#21755)) - Check archive sizes from `pylock.toml` before reusing cached distributions ([#21609](astral-sh/uv#21609)) - Keep user-authored local dependency paths relative in lockfiles when backend metadata reports absolute paths ([#20631](astral-sh/uv#20631)) - Use the bundled `uv_build` backend only when its version matches active versi… (truncated) ### 0.12.17 ## Release Notes Released on 2026-09-18. ### Enhancements - Reject unsupported Git archive paths in lockfiles with a clear error instead of panicking during frozen exports ([#21780](astral-sh/uv#21780)) ### Preview features - Set minimum glibc and musl versions that universal resolutions must support with `minimum-libc-version` ([#21651](astral-sh/uv#21651)) - Reject `pylock.toml` files whose wheel filenames do not match their declared package names or versions ([#20746](astral-sh/uv#20746)) - Keep `uv workspace metadata` read-only unless `--sync` is provided ([#21821](astral-sh/uv#21821)) - Apply `uv check` lock modes when retrieving workspace metadata ([#21821](astral-sh/uv#21821)) ### Performance - Speed up builds with many exclusion patterns by avoiding quadratic deduplication ([#21650](astral-sh/uv#21650)) - Reduce resolver allocations when deduplicating package and distribution requests ([#21810](astral-sh/uv#21810)) ### Bug fixes - Prevent `required-environments` from selecting package versions whose wheels require a newer macOS version than the configured Darwin baseline ([#21825](astral-sh/uv#21825)) ### Documentation - Clarify the 0.12.14 and 0.12.15 release notes ([#21817](astral-sh/uv#21817)) ## Install uv 0.12.17 ### Install prebuilt binaries via shell script ```sh curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/uv/releases/download/0.12.17/uv-installer.sh | sh ``` ### Install prebuilt binaries via powershell script ```sh powershell -ExecutionPolicy Bypass -c "irm https://releases.astral.sh/github/uv/releases/download/0.12.17/uv-installer.ps1 | iex" ``` ## Download uv 0.12.17 | File | Platform | Checksum | |--------|----------|----------| | [uv-aarch64-apple-darwin.tar.gz](https://rele… (truncated) </details> </details> Modified files: - `.mise.toml` Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
pat-s
pushed a commit
to pat-s/backporter
that referenced
this pull request
Nov 11, 2026
…-checker to v4 (#27) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [editorconfig-checker/editorconfig-checker](https://github.com/editorconfig-checker/editorconfig-checker) | repository | major | `v3.11.3` → `v4.0.2` | --- >⚠️ **Warning** > > Some dependencies could not be looked up. Check the [Dependency Dashboard](issues/7) for more information. Note: The `pre-commit` manager in Renovate is not supported by the `pre-commit` maintainers or community. Please do not report any problems there, instead [create a Discussion in the Renovate repository](https://github.com/renovatebot/renovate/discussions/new) if you have any questions. --- ### Release Notes <details> <summary>editorconfig-checker/editorconfig-checker (editorconfig-checker/editorconfig-checker)</summary> ### [`v4.0.2`](https://github.com/editorconfig-checker/editorconfig-checker/releases/tag/v4.0.2) [Compare Source](editorconfig-checker/editorconfig-checker@v4.0.1...v4.0.2) ##### Bug Fixes - **encoding:** detect 7-bit content with control characters as ASCII ([#​629](editorconfig-checker/editorconfig-checker#629)) ([289dc53](editorconfig-checker/editorconfig-checker@289dc53)), closes [#​627](editorconfig-checker/editorconfig-checker#627) - keep the file's existing line ending when adding a final newline ([#​622](editorconfig-checker/editorconfig-checker#622)) ([cea460f](editorconfig-checker/editorconfig-checker@cea460f)) ### [`v4.0.1`](https://github.com/editorconfig-checker/editorconfig-checker/releases/tag/v4.0.1) [Compare Source](editorconfig-checker/editorconfig-checker@v4.0.0...v4.0.1) ##### Bug Fixes - bump golang.org/x/mod to v0.40.0 ([3d2215c](editorconfig-checker/editorconfig-checker@3d2215c)) - **ci:** build docker images for all our platforms ([a34a6ee](editorconfig-checker/editorconfig-checker@a34a6ee)) - update pre-commit-config to use v4 of our repo ([fcd68bf](editorconfig-checker/editorconfig-checker@fcd68bf)) ### [`v4.0.0`](https://github.com/editorconfig-checker/editorconfig-checker/releases/tag/v4.0.0) [Compare Source](editorconfig-checker/editorconfig-checker@v3.11.3...v4.0.0) ##### ⚠ BREAKING CHANGES - internalize our packages ([#​619](https://github.com/editorconfig-checker/editorconfig-checker/issues/619))<br>It will no longer be possible to import our internal packages in your code. If you rely on one of our packages please let us know by opening an issue. - migrate to goreleaser dockers\_v2. ([#​617](https://github.com/editorconfig-checker/editorconfig-checker/issues/617))<br>This means we stop publishing the arch-suffixed images like `3.11.2-amd64` or `3.11.2-arm64v8`. All these architectures are still provided in the multiarch tag `3.11.2`. - rename ec to editorconfig-checker ([#​371](editorconfig-checker/editorconfig-checker#371)) - `.ecrc` is no longer discovered as a default config file name. Rename `.ecrc` to `.editorconfig-checker.json`, or pass the file explicitly with `--config .ecrc`. - Docker image tags no longer carry a leading `v`. Pull `3.12.0`, `3.12` and `3` instead of `v3.12.0`, `v3.12` and `v3` - the deprecated `SpacesAftertabs` configuration key has been removed, use `SpacesAfterTabs` instead. - stop accepting latin1 files as utf-8. ([#​598](https://github.com/editorconfig-checker/editorconfig-checker/issues/598))<br>Previously `charset=utf-8` was satisfied with files encoded as `latin1`. While most of the `latin1` range is identical to `utf-8`, not all is. If you request `utf-8` but have `latin1` encoded files expect these files to be reported as violations now. ##### Features - add safe EditorConfig autofixes ([#​612](editorconfig-checker/editorconfig-checker#612)) ([2f4962c](editorconfig-checker/editorconfig-checker@2f4962c)) - auto-detect `github-actions` output format in CI ([#​606](editorconfig-checker/editorconfig-checker#606)) ([271c500](editorconfig-checker/editorconfig-checker@271c500)) - remove support for the deprecated `.ecrc` config file name ([#​603](editorconfig-checker/editorconfig-checker#603)) ([2062751](editorconfig-checker/editorconfig-checker@2062751)) ##### Bug Fixes - add missing space in wrong indentation type error message ([#​610](editorconfig-checker/editorconfig-checker#610)) ([e0f1b56](editorconfig-checker/editorconfig-checker@e0f1b56)) - allow builds with Go 1.26 ([#​615](editorconfig-checker/editorconfig-checker#615)) ([343018a](editorconfig-checker/editorconfig-checker@343018a)) - consolidate error blocks that are interleaved with other errors ([#​601](editorconfig-checker/editorconfig-checker#601)) ([76b6313](editorconfig-checker/editorconfig-checker@76b6313)) - correct end line in codeclimate formatter output ([#​602](editorconfig-checker/editorconfig-checker#602)) ([2476e7c](editorconfig-checker/editorconfig-checker@2476e7c)) - correct the -disable-end-of-line flag description ([#​600](editorconfig-checker/editorconfig-checker#600)) ([1615efc](editorconfig-checker/editorconfig-checker@1615efc)) - drop a path whose content type could not be read ([#​599](editorconfig-checker/editorconfig-checker#599)) ([46995b1](editorconfig-checker/editorconfig-checker@46995b1)) - handle `unset` for `end_of_line` and `insert_final_newline` ([#​594](editorconfig-checker/editorconfig-checker#594)) ([123ba31](editorconfig-checker/editorconfig-checker@123ba31)), closes [#​580](editorconfig-checker/editorconfig-checker#580) - remove ambiguity between potential folder and file matches ([#​611](editorconfig-checker/editorconfig-checker#611)) ([4c4f7d4](editorconfig-checker/editorconfig-checker@4c4f7d4)) - remove leading `v` from Docker image tags ([#​607](editorconfig-checker/editorconfig-checker#607)) ([3827a6c](editorconfig-checker/editorconfig-checker@3827a6c)) - remove retired goreportcard badge ([2a9dd32](editorconfig-checker/editorconfig-checker@2a9dd32)) - stop accepting latin1 files as utf-8. ([#​598](https://github.com/editorconfig-checker/editorconfig-checker/issues/598))\<br>Previously `charset=utf-8` was satisfied with files encoded as `latin1`. While most of the `latin1` range is identical to `utf-8`, not all is. If you request `utf-8` but have `latin1` encoded files expect these files to be reported as violations now. ([4d84a77](editorconfig-checker/editorconfig-checker@4d84a77)) - typo in config, `SpacesAftertabs` => `SpacesAfterTabs` ([#​604](editorconfig-checker/editorconfig-checker#604)) ([bbc3f03](editorconfig-checker/editorconfig-checker@bbc3f03)) ##### Miscellaneous Chores - internalize our packages ([#​619](https://github.com/editorconfig-checker/editorconfig-checker/issues/619))\<br>It will no longer be possible to import our internal packages in your code. If you rely on one of our packages please let us know by opening an issue. ([d42bcb7](editorconfig-checker/editorconfig-checker@d42bcb7)) - rename ec to editorconfig-checker ([#​371](editorconfig-checker/editorconfig-checker#371)) ([0e3b27f](editorconfig-checker/editorconfig-checker@0e3b27f)) ##### Continuous Integration - migrate to goreleaser dockers\_v2. ([#​617](https://github.com/editorconfig-checker/editorconfig-checker/issues/617))\<br>This means we stop publishing the arch-suffixed images like `3.11.2-amd64` or `3.11.2-arm64v8`. All these architectures are still provided in the multiarch tag `3.11.2`. ([d4c1442](editorconfig-checker/editorconfig-checker@d4c1442)) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - Between 12:00 AM and 03:59 AM (`* 0-3 * * *`) - Automerge - Between 12:00 AM and 03:59 AM (`* 0-3 * * *`) 🚦 **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 [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4zOS4zIiwidXBkYXRlZEluVmVyIjoiNDQuNTIuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Reviewed-on: https://codefloe.com/pat-s/backporter/pulls/27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #627.
The bug
A file that is plain 7-bit ASCII apart from a C0 control character is reported as
ISO-8859-1, socharset = utf-8fails on it. The reporter's case is a text file holding ANSI color codes, whose only non-printable byte is ESC (0x1b):Cause
In
Detect, the ASCII branch requires the content to hold no C0 character at all:ESC is in
c0Chars, sohasC0is true and the file falls through to the second branch.hasC1is redundant there, sincec1Charsis a subset ofhiChars, so that branch is reached only for content that is valid UTF-8, has no byte>= 0x80, and holds a C0 character. All of that content is 7-bit, which makesISO-8859-1the wrong answer for every file that reaches it.Fix
Report ASCII whenever no byte is
>= 0x80, control characters included. Since 7-bit content is a strict subset of UTF-8,CharsetsMatchalready letsasciisatisfycharset = utf-8.ISO-2022 family encodings are 7-bit as well, so a positive detection of one of those is kept, guarded on a decoder being available:
That guard also fixes a second, smaller problem: the old branch overwrote chardet's correct ISO-2022-JP detection (99% confidence) with
ISO-8859-1. The decoder condition keepsISO-2022-KRandISO-2022-CN, which have no decoder in this package, from being reported and then falling back tobinary.Tests
New fixture
testdata/issues/issue627.txtis the reporter's example, with an entry intest-results.jsonexpectingAscii. It fails onmain(got ISO-8859-1, want Ascii) and passes here.Seven existing expectations in
test-results.jsonchange, all of them for the better:testdata/uchardet/en/ascii.txttestdata/text/rashomon-iso-2022-jp.txttestdata/uchardet/ja/iso-2022-jp.txttestdata/wpt/legacy-mb-japanese/iso-2022-jp/iso2022jp_chars.htmltestdata/wpt/legacy-mb-japanese/iso-2022-jp/iso2022jp_chars-csiso2022jp.htmltestdata/uchardet/ko/iso-2022-kr.txttestdata/wpt/legacy-mb-japanese/iso-2022-jp/iso2022jp_errors.htmlThe last two are 7-bit files this package cannot decode as ISO-2022: the KR file has no decoder, and the
_errors.htmlfixture is deliberately malformed ISO-2022-JP, which chardet reports at 0% confidence. Both decode to the same bytes as before, since the ASCII decoder path isiso88591. I left theShould be ISO-2022-JP?note on the_errors.htmlentry in place.go test ./...,go vet ./...andgofmt -lare clean, and the reproduction above now exits 0.🤖 Generated with Claude Code