aboutsummaryrefslogtreecommitdiff
path: root/tests/RunTests.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2010-11-12 18:40:16 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2010-11-12 18:40:16 -0800
commitf272b81f850a61a30d72b31494c13e69170d2715 (patch)
tree5a76e077538fac43d8c340422194af9bf1b4812c /tests/RunTests.hs
parentc44ff4c555925e083a5debf3fdf6e2feb459be05 (diff)
downloadpandoc-f272b81f850a61a30d72b31494c13e69170d2715.tar.gz
Set LANG in test runner.
Diffstat (limited to 'tests/RunTests.hs')
-rw-r--r--tests/RunTests.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/RunTests.hs b/tests/RunTests.hs
index f58221846..468451562 100644
--- a/tests/RunTests.hs
+++ b/tests/RunTests.hs
@@ -114,6 +114,7 @@ main = do
then mapM runLhsReaderTest lhsReaderFormats
else putStrLn "Skipping lhs reader tests because they presuppose highlighting support" >> return []
let results = r1s ++
+
[ r2, r3, r4, r5 -- S5
, r6, r7, r7a -- markdown reader
, r8, r8a -- rst
@@ -167,7 +168,8 @@ runTest testname opts inp norm = do
let normPath = norm
hFlush stdout
-- Note: COLUMNS must be set for markdown table reader
- ph <- runProcess pandocPath (opts ++ [inpPath] ++ ["--data-dir", ".."]) Nothing (Just [("COLUMNS", "80")]) Nothing (Just hOut) (Just stderr)
+ ph <- runProcess pandocPath (opts ++ [inpPath] ++ ["--data-dir", ".."]) Nothing
+ (Just [("LANG","en_US.UTF-8"),("COLUMNS", "80")]) Nothing (Just hOut) (Just stderr)
ec <- waitForProcess ph
result <- if ec == ExitSuccess
then do