Skip to content

v0.9.0

Choose a tag to compare

@codedeviate codedeviate released this 19 May 20:20
· 62 commits to main since this release

[0.9.0] — Earlier

Added

  • --encoding flag (also encoding = "..." in config) selecting how
    file/stdin bytes are decoded. Values: auto (default; tries UTF-8,
    falls back to ISO-8859-1 on decode failure), utf-8 (strict — errors
    with a hint on invalid sequences), iso-8859-1 / latin1 (every byte
    0x000xFFU+0000U+00FF). Decoder is dependency-free.

Changed

  • Reads are now always done as bytes via fs::read + input::decode,
    not fs::read_to_string.

Behavior change

  • Default auto encoding means older files that happened to be Latin-1
    now open silently instead of erroring with a UTF-8 decode error.