summaryrefslogtreecommitdiff
path: root/Utility/ExternalSHA.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-02-10 12:34:34 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-02-10 12:34:34 -0400
commita24623827ffb3c715926130fc983e0b5cb7452e1 (patch)
tree29eaf7cc1a80d5941daad0c54a19c8058ab2606a /Utility/ExternalSHA.hs
parentf790ba917617065b9059817b3f1fbc6853ea5b76 (diff)
bittorrent: Fix mojibake introduced in parsing arai2c progress output.
hGetSomeString reads one byte at a time, so unicode bytes are not composed. The problem comes when outputting that to the console with hPut; that tried to apply the handle's encoding, and so we get mojibake. Instead, use ByteStrings, and only convert it to a string for parsing, not for display. Note that there are a couple of other things that use hGetSomeString, which I've left as-is for now.
Diffstat (limited to 'Utility/ExternalSHA.hs')
0 files changed, 0 insertions, 0 deletions