@@ -41,7 +41,7 @@ import System.Console.GetOpt
4141import Data.Maybe ( fromMaybe )
4242import Data.Char ( toLower )
4343import Prelude hiding ( putStrLn, writeFile, readFile, getContents )
44−#ifdef UTF_8
44+#ifdef _UTF8
4545import System.IO.UTF8
4646import System.IO ( stdout, stderr )
4747#else
@@ -54,13 +54,17 @@ copyrightMessage = "\nCopyright (C) 2006-7 John MacFarlane\n" ++
5454 "This is free software; see the source for copying conditions. There is no\n" ++
5555 "warranty, not even for merchantability or fitness for a particular purpose."
5656
57−compileOptions :: String
58−compileOptions =
57+compileInfo :: String
58+compileInfo = "Compiled" ++
59+#ifdef _UTF8
60+ " with UTF-8 support" ++
61+#else
62+ " without UTF-8 support" ++
63+#endif
5964 if null languages
60− then "\nCompiled without syntax highlighting support."
61− else "\nCompiled with syntax highlighting support for the following languages:\n" ++
62− (unlines $ map unwords $ chunk 5 $
63− map (\s -> s ++ replicate (15 - length s) ' ') languages)
65+ then " and without syntax highlighting support."
66+ else " and with syntax highlighting support for:\n" ++
67+ (unlines $ map unwords $ chunk 5 $ map (\s -> s ++ replicate (15 - length s) ' ') languages)
6468
6569-- | Splits a list into groups of at most n.
6670chunk :: Int -> [a] -> [[a]]
@@ -344,7 +348,7 @@ options =
344348 (NoArg
345349 (\_ -> do
346350 prg <- getProgName
347− hPutStrLn stderr (prg ++ " " ++ pandocVersion ++ compileOptions ++
351+ hPutStrLn stderr (prg ++ " " ++ pandocVersion ++ "\n" ++ compileInfo ++
348352 copyrightMessage)
349353 exitWith $ ExitFailure 4))
350354 "" -- "Print version"