Bug #11178
Include byte 0 in character byte representation for binary ops
Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:
100%
billable:
No
vendor_id:
GCD
case_num:
version_reported:
version_resolved:
reviewer:
production:
No
env_name:
topics:
Related issues
History
#1 Updated by Paul Bodale 6 months ago
The byte 0 is included in a character variable's internal representation and this can affect operations with RAW or MEMPTR values.
The following is a testcase I found:
DEFINE VARIABLE c AS CHARACTER INITIAL "a" NO-UNDO. DEFINE VARIABLE rawData AS RAW NO-UNDO. PUT-STRING(rawData, 1) = c. MESSAGE LENGTH(rawData). //Progress: 2 | FWD: 1
#3 Updated by Eduard Soltan 6 months ago
Tested with trunk rev. 16406, output is expected.
#5 Updated by Constantin Asofiei 6 months ago
- % Done changed from 0 to 100
- Status changed from New to Rejected