ECN-4637 Long double-byte characters are being erased, instead of truncated

Incidents: 3202615

RPI Number: 1117956

Product: ACUCOBOL-GT

Module: Runtime

Machines Affected: Windows

Known Versions Affected: 10.3.1

DESCRIPTION:

When using wide character sets, it is usually not correct to use the default size for an entry field. This is because most wide characters within these character sets will require at least 2 bytes to store their value. So an entry field that has a size of 5 (for example) should ideally use a data item that is at least pic x(10) in size to avoid truncation (and possibly end with a partial character). Where items are not sufficient in size, truncation should occur; however, in previous versions, the data would be returned as spaces rather than being truncated, in the case where the default size was used for an entry field.