EPUB: Get correct environment variable for LANG.
This should fix `<dc:language>` problems.
This commit is contained in:
parent
925a4c5164
commit
7702d2ca82
1 changed files with 1 additions and 1 deletions
|
@ -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" !
|
||||
|
|
Loading…
Add table
Reference in a new issue