From b2d38a44ecfe3ad4e4a9c24dac52bcb36e941926 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 28 Jul 2013 17:24:30 -0400 Subject: don't crash on encoding issues in feeds filesystem encoding to the rescue once more! IIRC this was the main bug in hpodder. --- Command/ImportFeed.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/Command/ImportFeed.hs b/Command/ImportFeed.hs index d919a9626..90b35c8de 100644 --- a/Command/ImportFeed.hs +++ b/Command/ImportFeed.hs @@ -85,6 +85,7 @@ downloadFeed :: URLString -> Annex (Maybe Feed) downloadFeed url = do showOutput liftIO $ withTmpFile "feed" $ \f h -> do + fileEncoding h ifM (Url.download url [] [] f) ( parseFeedString <$> hGetContentsStrict h , return Nothing -- cgit v1.2.3