https://bz.apache.org/bugzilla/show_bug.cgi?id=69667
--- Comment #4 from Dominik Stadler <dominik.stad...@gmx.at> --- On 2nd thought: The tool also might try to actually include 81 characters in the record, which is also wrong. It then should state the actual number of characters it can include in the record according to the fixed allowed size. However we may be able to work around this in Apache POI via using the following when determining the byteCnt in this case without too much risk of breaking processing of many other documents: int min = Math.min(nChars * 2, data.length); // make sure it is divisible by 2 min = min - (min % 2); byteCnt = min; -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org