Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Data/Gettext/GmoFile.hs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,13 @@ parseGmo = do
transOffs <- getWord32
hashSz <- getWord32
hashOffs <- getWord32

skip $ max 0 (fromIntegral origOffs - 28)
origs <- replicateM (fromIntegral size) getPair

skip $ max 0 (fromIntegral transOffs - fromIntegral origOffs - fromIntegral size * 8)
trans <- replicateM (fromIntegral size) getPair

return $ GmoFile {
fMagic = magic,
fRevision = revision,
Expand Down