Project

General

Profile

Bug #11178

Include byte 0 in character byte representation for binary ops

Added by Paul Bodale 6 months ago. Updated 6 months ago.

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

Related to Base Language - Bug #4766: fix CHR and ASC WIP

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

#2 Updated by Paul Bodale 6 months ago

  • Related to Bug #4766: fix CHR and ASC added

#3 Updated by Eduard Soltan 6 months ago

Tested with trunk rev. 16406, output is expected.

#4 Updated by Paul Bodale 6 months ago

Indeed. There was a problem with my setup. This task should be rejected.

#5 Updated by Constantin Asofiei 6 months ago

  • % Done changed from 0 to 100
  • Status changed from New to Rejected

Also available in: Atom PDF