diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2012-09-26 09:04:21 -0700 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2012-09-26 09:04:21 -0700 |
commit | c80ffe9171391f1a15d0c4b069f4b994c1aef050 (patch) | |
tree | 07fb7df7b51c5b451e39448a40712ac74b4325f0 /osx-resources | |
parent | 885ef2072f68fd01137d2eb41d1258932d2134c5 (diff) |
UTF8: Better error message for invalid UTF8.
Read bytestring and use Text's decodeUtf8 instead of using System.IO's
hGetContents. This way you get a message saying "invalid UTF-8 stream"
instead of "invalid byte sequence." You are also told which byte caused
the problem.
Diffstat (limited to 'osx-resources')
0 files changed, 0 insertions, 0 deletions