Re: [whatwg/encoding] index-jis0208.txt should be JIS X 0208 and add another index file (#47)

Does the the EUC-JP encoder really has the bug?
The step 7 for the EUC-JP encoder is defined as follows:

> Let pointer be the index pointer for code point in index jis0208. 

And "index pointer for code point" is defined as follows:

> The index pointer for code point in index is the *first* pointer corresponding to code point in index, or null if code point is not in index. 

So, for example, the index pointer for code point 0x2170 is 8634, not 10716. The the EUC-JP encoder will set 'lead = 252' and 'trail = 241'.

If some implementations set a lead >= 256, it's just a implementation bug.

-- 
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/47#issuecomment-251080269

Received on Monday, 3 October 2016 11:04:37 UTC