Version of ecformat
0.2.0
Operating system
Linux
Version of your operating system (e.g. Debian 11, Arch Linux or Windows 11)
Manjaro Linux
Installation method
Binary from Codeberg package ecformat_bin
Steps to reproduce the bug
- Checkout github.com/rust-lang/rust at revision
267c4057bad01b0cf9733081d170c1358b4b3674 - Run
ecformat check(orecformat fix) on for example the following files:- src/doc/rustdoc/src/write-documentation/the-doc-attribute.md
- src/doc/rustdoc/src/unstable-features.md
- tests/ui/README.md
Expected result
A check passes without errors and a fix does not change anything.
Actual result
The check reports that the files have latin1 encoding and the fix changes some lines. These lines all have some special characters in there, such as a non-breaking space or 👻.