From d00da316227c26bad857998d0398a23917ee0a7b Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Thu, 14 Aug 2008 01:32:54 +0000 Subject: 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 --- Main.hs | 9 --------- 1 file changed, 9 deletions(-) (limited to 'Main.hs') 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 -- cgit v1.2.3