This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The hz-gb-2312 encoder says: > If either lead or trail is not in the range 0x21 to 0x7E, > emit an encoder error. This can only happen if lead < 0x21 or trail < 0x21 (possibly negative); there should be no need to check the upper boundaries. The iso-2022-kr encoder says: > If lead is not in the range 0x21 to 0x46 or trail is not in the range > 0x21 to 0x7E, emit an encoder error. Again, this can only happen if lead < 0x21 or trail < 0x21 (possibly negative). Furthermore: > If lead is not in the range 0x47 to 0x7E or trail is not in the range > 0x21 to 0x7E, emit an encoder error. I believe this cannot happen at all.
I added those just in case. I guess I can comment them out for now.
https://github.com/whatwg/encoding/commit/47d09ee49d2ad47a435e573e67347766e36c95d2