- From: r12a <notifications@github.com>
- Date: Wed, 09 Aug 2017 10:09:05 -0700
- To: whatwg/encoding <encoding@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 9 August 2017 17:09:27 UTC
> Two decode expectations for malformed sequences seem wrong: > Fail escape start: 1B 65 79 56 1B 28 42 assert_equals: expected "�eByV" but got "�eyV" > Fail escape: 1B 24 65 79 56 1B 28 42 assert_equals: expected "�e$yV" but got "�$eyV" @hsivonen @annevk i fixed the first, which was indeed a bug. (Wrong expectations.) however the second test you mention above still fails in FF, Chrome and Safari. I suspect it may be a bug in the decoder algorithm at https://encoding.spec.whatwg.org/#iso-2022-jp-decoder step escape.8 says: > Prepend lead and byte to stream. To get what the browsers are actually returning, i think it needs to say "Prepend byte and lead to stream" Or perhaps better, specify explicitly the order in which those two should end up when prepended. -- 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/60#issuecomment-321319456
Received on Wednesday, 9 August 2017 17:09:27 UTC