git.iko.soy/typeable/pandoc
on master help sign in
Set locale encoding in test suite.

This prevents a "commit buffer (invalid argument)" error on Windows.

commit809d74b86db2f261248141ec8820951e5854a7f7 authorJohn MacFarlane <fiddlosopher@gmail.com> dateFri 18 Jan 2013, 11:23 (14 years ago) parent8eab759
1 file changed+4−2
tests/test-pandoc.hs+4−2
tests/test-pandoc.hs+4−2
@@ -3,7 +3,7 @@
33module Main where
44
55import Test.Framework
6−
6+import GHC.IO.Encoding
77import qualified Tests.Old
88import qualified Tests.Readers.LaTeX
99import qualified Tests.Readers.Markdown
@@ -34,4 +34,6 @@ tests = [ testGroup "Old" Tests.Old.tests
3434 ]
3535
3636main :: IO ()
37−main = inDirectory "tests" $ defaultMain tests
37+main = do
38+ setLocaleEncoding utf8
39+ inDirectory "tests" $ defaultMain tests