diff --git a/encoding.bs b/encoding.bs index 018d917..80f5f04 100644 --- a/encoding.bs +++ b/encoding.bs @@ -1625,25 +1625,24 @@ consumers of content generated with GBK's encoder.

If gb18030 third is not 0x00, then:

    -
  1. Let code point be null. +

  2. +

    If byte is not in the range 0x30 to 0x39, inclusive, then: -

  3. If byte is in the range 0x30 to 0x39, inclusive, set - code point to the - index gb18030 ranges code point for +

      +
    1. Prepend gb18030 second, gb18030 third, and byte to + stream. + +

    2. Set gb18030 first, gb18030 second, and gb18030 third to 0x00. + +

    3. Return error. +

    + +
  4. Let code point be the index gb18030 ranges code point for ((gb18030 first − 0x81) × (10 × 126 × 10)) + ((gb18030 second − 0x30) × (10 × 126)) + ((gb18030 third − 0x81) × 10) + byte − 0x30. -

  5. Let buffer be a byte sequence consisting of - gb18030 second, gb18030 third, and byte, in - order. - -

  6. Set gb18030 first, gb18030 second, and - gb18030 third to 0x00. - -

  7. If code point is null, - prepend buffer to - stream and return error. +

  8. If code point is null, return error.

  9. Return a code point whose value is code point.