aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-01-18 11:23:09 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-01-18 11:23:09 -0800
commit809d74b86db2f261248141ec8820951e5854a7f7 (patch)
treef98bb4f8793861838bbb686059e39da28f5b0cc3 /tests
parent8eab759a9c72e98b8e47d7c4b19d6aeb3e24cdcb (diff)
downloadpandoc-809d74b86db2f261248141ec8820951e5854a7f7.tar.gz
Set locale encoding in test suite.
This prevents a "commit buffer (invalid argument)" error on Windows.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-pandoc.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test-pandoc.hs b/tests/test-pandoc.hs
index 968f31df6..24b7a8261 100644
--- a/tests/test-pandoc.hs
+++ b/tests/test-pandoc.hs
@@ -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