Update encoding001 to test the full range of non-surrogate code points
authorReid Barton <rwbarton@gmail.com>
Thu, 23 Jul 2015 09:43:07 +0000 (11:43 +0200)
committerBen Gamari <ben@smart-cactus.org>
Thu, 23 Jul 2015 09:43:08 +0000 (11:43 +0200)
commite78841b518ee9c0b92437899c3a4a2307dfd4ac8
tree2e9362b2bb1cb874861bec85e4591209853145e8
parent76e2341afdc050549067a18cac41373f64daf4c2
Update encoding001 to test the full range of non-surrogate code points

GHC has used surrogate code points for roundtripping since 7.4.
See Note [Roundtripping].

Also, improve the wording of that Note slightly.

Test Plan: validate still passes

Reviewers: austin, hvr, bgamari

Reviewed By: bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D1087
libraries/base/GHC/IO/Encoding/Failure.hs
libraries/base/tests/IO/encoding001.hs