A text constant with characters that EBCDIC CCSIDs code differently is written with its bytes #652
Loading…
Reference in a new issue
No description provided.
Delete branch "rpg-9-ar-text-invariant-20261028"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A text constant with characters that EBCDIC CCSIDs code differently is written with its bytes
The evaluator wrote a text constant as characters through the CCSID 037 table.
The characters
| ! [ ] { } \ ^ ~ # @ $are not the same byte in every EBCDICCCSID:
|is 4F in 037 and BB in 273, the CCSID of the host that compiled thepublic probes and of the held-out exam. The rebuilt object got the byte that
273 gives the character, not the byte of the reference, so strings with one such
character differed in one byte, and strings with several in several.
A text constant with a character that is not invariant across the EBCDIC CCSIDs
is now written as a hex literal with its own bytes, the rule that the
declarations already follow for
inz(ftwin15-y3:'a|b!c'compiled under273 reads
X'81BB824F83').rpg_literals.invariantis the one predicate forboth.
Gates