Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmds: force utf-8 when displaying untracked files
We do a partial read of untracked files which means that we may sometimes read invalid utf-8 when the read is truncated. Handle this in a more robust way by forcing utf-8 and skipping over truncated bytes at the end of the read. Closes #401 Reported-by: V字龍(Vdragon) <Vdragon.Taiwan@gmail.com> Signed-off-by: David Aguilar <davvid@gmail.com>
- Loading branch information