You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
INTERNAL ERROR code that is not equivalent to the source (non-UTF8, iso-8859-1) #4979
❯ black --version && black --diff tests/test_cases/not_utf8.py
black, 23.9.1 (compiled: no)
Python (CPython) 3.13.5
All done! ✨ 🍰 ✨
1 file would be left unchanged.
❯ black --version && black --diff tests/test_cases/not_utf8.py
black, 25.12.0 (compiled: no)
Python (CPython) 3.13.5
All done! ✨ 🍰 ✨
1 file would be left unchanged.
New behaviour:
❯ black --version && black --diff tests/test_cases/not_utf8.py
black, 26.1.0 (compiled: no)
Python (CPython) 3.13.5
error: cannot format tests/test_cases/not_utf8.py: INTERNAL ERROR: Black 26.1.0 on Python (CPython) 3.13.5 produced code that is not equivalent to the source. Please report a bug on https://github.com/psf/black/issues. This diff might be helpful: /var/folders/_b/zf5p80v11bd2m2fq4j17z8mr0000gn/T/blk_9jeg_ijj.log
Oh no! 💥 💔 💥
1 file would fail to reformat.
Activity
cobaltt7 commentedon Feb 2, 2026
Duplicate of #4963, which has already been fixed. We'll probably release a 26.2.0 soon