Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix EUC-JP reference decoder #11645

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix EUC-JP reference decoder
The relevant step fixed by this pull request says "Return error."; thus, the rest of the process should continue with the next iteration, rather than run the rest of the handler for the given byte.
  • Loading branch information
peteroupc authored Jun 24, 2018
commit 8d0e3c29aae1cb2e5d7559df61f54c0e85493622
1 change: 1 addition & 0 deletions encoding/legacy-mb-japanese/euc-jp/eucjp-decoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ function eucjpDecoder(stream) {
}
if (byte >= 0x00 && byte <= 0x7f) bytes.unshift(byte);
out += "�";
continue;
}
if (byte >= 0x00 && byte <= 0x7f) {
out += dec2char(byte);
Expand Down