jorisroovers / gitlint

Linting for your git commit messages
http://jorisroovers.github.io/gitlint
MIT License
803 stars 99 forks source link

Separate FILE_ENCODING from TERMINAL_ENCODING #424

Closed jorisroovers closed 1 year ago

jorisroovers commented 1 year ago

Distinguish between terminal encoding (DEFAULT_ENCODING) and file encoding (FILE_ENCODING).

Before, gitlint always decoded files using the terminal encoding (DEFAULT_ENCODING) which can be problematic in cases where the terminal encoding is non UTF-8.

File encoding is hard set to UTF-8.