Re: [whatwg/encoding] EUC-jp encoding/decoding support (#59)

One test showed that the code I had written differed from the spec. However, it seems the test expectation differs from the spec, too:
trail byte outside 0xA1-0xFE: B0 A0 assert_equals: expected "� " but got "�"

Curiously, the spec makes EUC-JP differ from the other two-byte encodings when it comes to the handling of a non-ASCII bogus trail byte. (0xA0 and 0xFF get prepended in addition to ASCII getting prepended.)

Why is EUC-JP different? Is it intentional?

-- 
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/59#issuecomment-297750352

Received on Thursday, 27 April 2017 15:33:16 UTC