| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
❌ 1 Tests Failed:
To view more test analytics, go to the Test Analytics Dashboard |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This PR addresses a UnicodeDecodeError that occurred when codecov-cli attempted to decode git command output containing non-UTF-8 bytes, particularly in filenames or branch names.
The root cause was identified as the use of bare .decode() calls (which default to strict UTF-8) on subprocess.run stdout, leading to crashes when encountering invalid byte sequences (e.g., 0xc0).
The fix involves updating all relevant .decode() calls in codecov_cli/helpers/versioning_systems.py to explicitly use decode("utf-8", errors="surrogateescape"). This standard Python idiom for handling filesystem paths ensures that non-UTF-8 bytes are preserved as surrogate characters instead of raising an exception, allowing the CLI to gracefully process repositories with such names.
Fixes CLI-BD