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:
srowen 2011-06-22 19:49:23 +00:00
parent a866e832c9
commit d0fb1435b1

View file

@ -421,10 +421,10 @@ final class DecodedBitStreamParser {
}
if (!unlatch) {
if ((edifactValue & 32) == 0) { // no 1 in the leading (6th) bit
edifactValue |= 64; // Add a leading 01 to the 6 bit binary value
if ((edifactValue & 0x20) == 0) { // no 1 in the leading (6th) bit
edifactValue |= 0x40; // Add a leading 01 to the 6 bit binary value
}
result.append(edifactValue);
result.append((char) edifactValue);
}
}
} while (!unlatch && bits.available() > 0);