Re: [whatwg/encoding] EUC-JP encoding is currently ambiguous (#225)

I had lexically sorted my copy of the table instead of doing a stable sort.  So code points like 0xFA16 which had a pointer greater than 10000 (10934 in this case) and one less than 10000 but greater than 1000 (8462 in this case) were coming first, and I thought I had to choose the last one.  🤦

Having implemented all 3 now, the spec is correct in the pointer choice.

Step 2 of ISO-2022-JP encoder seems to be contrary to the behavior of Chrome and Firefox and soon-to-be WebKit, but that's probably a different issue.

-- 
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/225#issuecomment-685259582

Received on Wednesday, 2 September 2020 03:05:06 UTC