EPUB: Get correct environment variable for LANG.

This should fix `<dc:language>` problems.
This commit is contained in:
John MacFarlane 2011-12-30 09:55:36 -08:00
parent 925a4c5164
commit 7702d2ca82

View file

@ -120,7 +120,7 @@ writeEPUB mbStylesheet opts doc@(Pandoc meta _) = do
let chapterEntries = zipWith chapterToEntry [1..] chapters
-- contents.opf
lang <- catch (liftM (takeWhile (/='.')) $ getEnv "lang")
lang <- catch (liftM (takeWhile (/='.')) $ getEnv "LANG")
(\_ -> return "en-US")
uuid <- getRandomUUID
let chapterNode ent = unode "item" !