mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
Issue 880 treat EDIFACT as ASCII correctly when appending to result
git-svn-id: https://zxing.googlecode.com/svn/trunk@1830 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
a866e832c9
commit
d0fb1435b1
|
@ -421,10 +421,10 @@ final class DecodedBitStreamParser {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!unlatch) {
|
if (!unlatch) {
|
||||||
if ((edifactValue & 32) == 0) { // no 1 in the leading (6th) bit
|
if ((edifactValue & 0x20) == 0) { // no 1 in the leading (6th) bit
|
||||||
edifactValue |= 64; // Add a leading 01 to the 6 bit binary value
|
edifactValue |= 0x40; // Add a leading 01 to the 6 bit binary value
|
||||||
}
|
}
|
||||||
result.append(edifactValue);
|
result.append((char) edifactValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} while (!unlatch && bits.available() > 0);
|
} while (!unlatch && bits.available() > 0);
|
||||||
|
|
Loading…
Reference in a new issue