git.iko.soy/typeable/pandoc
on master help sign in
Convert command-line arguments to UTF8.

Resolves Issue #234.

commitf20c4ae928a41cb83455f11dba67ea51dfe27f3e authorJohn MacFarlane <jgm@berkeley.edu> dateTue 4 May 2010, 23:36 (16 years ago) parentd253955
1 file changed+2−1
src/pandoc.hs+2−1
src/pandoc.hs+2−1
@@ -61,6 +61,7 @@ import Control.Monad (when, unless, liftM)
6161import Network.HTTP (simpleHTTP, mkRequest, getResponseBody, RequestMethod(..))
6262import Network.URI (parseURI, isURI)
6363import Data.ByteString.Lazy.UTF8 (toString)
64+import Codec.Binary.UTF8.String (decodeString)
6465
6566copyrightMessage :: String
6667copyrightMessage = "\nCopyright (C) 2006-2010 John MacFarlane\n" ++
@@ -592,7 +593,7 @@ defaultWriterName x =
592593main :: IO ()
593594main = do
594595
595− rawArgs <- getArgs
596+ rawArgs <- liftM (map decodeString) getArgs
596597 prg <- getProgName
597598 let compatMode = (prg == "hsmarkdown")
598599