Browse Source

Correct buggy Shift_JIS tests

multi-byte
J. King 4 years ago
parent
commit
53b27d1a55
  1. 2
      tests/cases/Encoding/TestShiftJIS.php
  2. 2
      tools/mktest.php

2
tests/cases/Encoding/TestShiftJIS.php

File diff suppressed because one or more lines are too long

2
tools/mktest.php

@ -58,6 +58,8 @@ function make_test(string $label, string $url): array {
$code = 7743;
} elseif ($label=="euc-jp") { // three tests are out of date
$code = ["5C" => 92, "7E" => 126, "A1DD" => 65293][$bytes] ?? $code;
} elseif ($label=="shiftjis") { // three tests are incorrect
$code = ["5C" => 92, "7E" => 126, "817C" => 0xFF0D][$bytes] ?? $code;
}
// convert the code point to decimal
$out[] = $code;

Loading…
Cancel
Save