Commit graph

4 commits

Author SHA1 Message Date
Joey Hess
a787cead35 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.
2015-02-10 12:34:34 -04:00
Joey Hess
b80a434685 more descriptive title 2015-02-10 12:18:19 -04:00
https://id.koumbit.net/anarcat
8e2f2483d8 found the previous issue 2015-02-10 03:21:15 +00:00
https://id.koumbit.net/anarcat
25a74b567b some small weird utf8 bug again 2015-02-10 03:12:38 +00:00