attempt at a quick, utf-8 only fix to the ghc 7.4 problem
If you have only utf-8 filenames, and need to build git-annex with ghc 7.4, this will work. But, it will crash on non-utf-8 filenames.
This commit is contained in:
parent
6c64a214fa
commit
3d49258e5b
9 changed files with 36 additions and 29 deletions
|
@ -128,9 +128,9 @@ showRaw s = handle q $ putStrLn s
|
|||
-
|
||||
- NB: Once git-annex gets localized, this will need a rethink. -}
|
||||
setupConsole :: IO ()
|
||||
setupConsole = do
|
||||
hSetBinaryMode stdout True
|
||||
hSetBinaryMode stderr True
|
||||
setupConsole = return ()
|
||||
--hSetBinaryMode stdout True
|
||||
--hSetBinaryMode stderr True
|
||||
|
||||
handle :: IO () -> IO () -> Annex ()
|
||||
handle json normal = Annex.getState Annex.output >>= go
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue