micjahn/ZXing.Net

Datamatrix encoding fails for specific content with C40 encoding

mitchmartini opened this issue · 2 comments

An exception is thrown in encodeMaximal method of ZXing.Datamatrix.Encoder.C40Encoder class
when changing the StringBuilder Capacity, because the new capacity is less than the current.

You can reproduce the bug with the WindowsFormsDemo encoder with type DATA_MATRIX and ForceC40 = true
and the following content:
IS010000000000000000000000S1123456789012345S21.2.250.1.213.1.4.8S3AAAAAA BBBBBBB CCCCCCS4XXXXXS5MS601-01-1972S706088

Thanks for reporting.