Set locale encoding in test suite.
This prevents a "commit buffer (invalid argument)" error on Windows.
This commit is contained in:
parent
8eab759a9c
commit
809d74b86d
1 changed files with 4 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
module Main where
|
||||
|
||||
import Test.Framework
|
||||
|
||||
import GHC.IO.Encoding
|
||||
import qualified Tests.Old
|
||||
import qualified Tests.Readers.LaTeX
|
||||
import qualified Tests.Readers.Markdown
|
||||
|
@ -34,4 +34,6 @@ tests = [ testGroup "Old" Tests.Old.tests
|
|||
]
|
||||
|
||||
main :: IO ()
|
||||
main = inDirectory "tests" $ defaultMain tests
|
||||
main = do
|
||||
setLocaleEncoding utf8
|
||||
inDirectory "tests" $ defaultMain tests
|
||||
|
|
Loading…
Reference in a new issue