[whatwg/encoding] utf-8 encoder lead byte switch branches 0xE0 to 0xEF, 0xF0 to 0xF4 need 'return continue' (#42)

https://github.com/whatwg/encoding/pull/38 changed how the lead byte is processed. It removed "Then (byte is in the range 0xC2 to 0xF4, inclusive) set UTF-8 code point to UTF-8 code point << (6 × UTF-8 bytes needed) and return continue."

The first two and final switch branches (0x00 to 0x7F, 0xC2 to 0xDF, and Otherwse) have returns, but the remaining two (0xE0 to 0xEF, 0xF0 to 0xF4) do not, so fall through to the trail byte processing.

Looks like they just need additional "Return continue" substeps added

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/encoding/issues/42

Received on Wednesday, 6 April 2016 20:50:59 UTC