mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
Oops fixed bug in guessing Shift_JIS -- flipped if condition!
git-svn-id: https://zxing.googlecode.com/svn/trunk@187 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
e334937fa5
commit
bbe423c7c2
|
@ -217,11 +217,11 @@ final class DecodedBitStreamParser {
|
|||
int nextValue = bytes[i + 1] & 0xFF;
|
||||
if ((value & 0x1) == 0) {
|
||||
// if even,
|
||||
if (nextValue >= 0x40 && nextValue <= 0x9E) {
|
||||
if (nextValue >= 0x9F && nextValue <= 0x7C) {
|
||||
return SHIFT_JIS;
|
||||
}
|
||||
} else {
|
||||
if (nextValue >= 0x9F && nextValue <= 0x7C) {
|
||||
if (nextValue >= 0x40 && nextValue <= 0x9E) {
|
||||
return SHIFT_JIS;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue