diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-09-09 17:02:00 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-09-09 17:02:00 -0400 |
commit | 09b050b24597a21343f712e4bc7b6f8660113d63 (patch) | |
tree | 508942f546882679c2f34648350f3579303eb856 /Database | |
parent | eee2566fce1e3cf8337ced753a8dcfc2923b28b2 (diff) |
fsck: Work around bug in persistent that broke display of problematically encoded filenames on stderr when using --incremental.
Diffstat (limited to 'Database')
-rw-r--r-- | Database/Fsck.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Database/Fsck.hs b/Database/Fsck.hs index 20b4878e3..ed00e62d8 100644 --- a/Database/Fsck.hs +++ b/Database/Fsck.hs @@ -31,6 +31,7 @@ import Types.Key import Types.UUID import Annex.Perms import Annex.LockFile +import Messages import Database.Persist.TH import Database.Esqueleto hiding (Key) @@ -77,6 +78,10 @@ openDb u = do rename tmpdbdir dbdir lockFileCached =<< fromRepo (gitAnnexFsckDbLock u) h <- liftIO $ H.openDb db "fscked" + + -- work around https://github.com/yesodweb/persistent/issues/474 + liftIO setConsoleEncoding + return $ FsckHandle h u closeDb :: FsckHandle -> Annex () |