]> dgit.raspbian.org Git - git-annex.git/commit
use parseFeedFromFile to avoid mojibake
authorJoey Hess <joeyh@joeyh.name>
Mon, 15 Nov 2021 19:31:02 +0000 (15:31 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 15 Nov 2021 19:31:02 +0000 (15:31 -0400)
commit332385a1174b056be45758e2e978815c4e9b9c66
treebddf646589b3e4df67756aa448d1ef962d5411d0
parent2bd778a46ed071c2dd534ebe3b7007b7ae60d1c1
use parseFeedFromFile to avoid mojibake

As mentioned in commit 2bd778a46ed071c2dd534ebe3b7007b7ae60d1c1, there
was mojibake when LANG=C.

Looking at parseFeedFromFile, it is very particular to read the file as
unicode. parseFeedString looks like it will accept any old String,
but a String that was read using the filesystem encoding will not in
fact have the right encoding.

I think this is a bug in the feed library and will file one.

Sponsored-by: Svenne Krap on Patreon
Command/ImportFeed.hs