aboutsummaryrefslogtreecommitdiff
path: root/Main.hs
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2008-08-14 01:32:54 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2008-08-14 01:32:54 +0000
commitd00da316227c26bad857998d0398a23917ee0a7b (patch)
treeef4ae5ec42114e9a8e94cb83f50368c6af849e33 /Main.hs
parent8388427d230e853466298cfae7abf0ac0af50269 (diff)
downloadpandoc-d00da316227c26bad857998d0398a23917ee0a7b.tar.gz
Simplified and improved UTF8 handling:
+ Removed utf8-string cabal configuration flag. + Instead, we just include System.IO.UTF8 and Codec.Binary.UTF8.String from utf8-string package in the source tree, avoiding a dependency on utf8-string and avoiding crufty custom UTF8 code. (The old Text.Pandoc.UTF8 had problems with the getContents function.) + Removed lots of CPP directives that are no longer needed. + In Setup.hs, use '-i..' in running RunTests.hs, so the local UTF8 code will be found. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1411 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'Main.hs')
-rw-r--r--Main.hs9
1 files changed, 0 insertions, 9 deletions
diff --git a/Main.hs b/Main.hs
index 67ab68b99..635b2f790 100644
--- a/Main.hs
+++ b/Main.hs
@@ -43,11 +43,7 @@ import Data.Maybe ( fromMaybe )
import Data.Char ( toLower )
import Prelude hiding ( putStrLn, writeFile, readFile, getContents )
import System.IO ( stdout, stderr )
-#ifdef _UTF8STRING
import System.IO.UTF8
-#else
-import Text.Pandoc.UTF8
-#endif
#ifdef _CITEPROC
import Text.CSL
import Text.Pandoc.Biblio
@@ -61,11 +57,6 @@ copyrightMessage = "\nCopyright (C) 2006-7 John MacFarlane\n" ++
compileInfo :: String
compileInfo =
-#ifdef _UTF8STRING
- " +utf8-string" ++
-#else
- " -utf8-string" ++
-#endif
#ifdef _CITEPROC
" +citeproc" ++
#else