set fileEncoding in streamLogFileUnsafe
authorJoey Hess <joeyh@joeyh.name>
Thu, 8 May 2025 18:59:29 +0000 (14:59 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 8 May 2025 18:59:42 +0000 (14:59 -0400)
commitde7dae06cf551bc49a34e5afb9434792481e44b3
tree42ba207ee30662bd1686fbc0d13875879ff017f3
parentbda9dec2f59f7ab9f6a30565cac2cfe37bc45052
set fileEncoding in streamLogFileUnsafe

Windows: Fix bug that can cause git status to show annexed files as
modified when built with OsPath.

This may also have caused bugs on non-Windows, with filenames with
non-ascii characters? Unsure.

The OsPath conversion makes this one of the last few places
(hopefully) where a String is read from a Handle. All other fileEncoding
uses have been eliminated before this point by converting to reading
ByteString and using OsPath. Doing that here would be a better fix,
performance wise.

Sponsored-by: Jack Hill
CHANGELOG
Logs/File.hs
doc/bugs/OsPath_bld_of_g-a_shows_files_needlessly_modified.mdwn
doc/bugs/OsPath_bld_of_g-a_shows_files_needlessly_modified/comment_5_be63c011f1a7e327ce3c79125105644d._comment [new file with mode: 0644]