A text constant is read in the CCSID of the object that holds it #653
Loading…
Reference in a new issue
No description provided.
Delete branch "rpg-9-as-text-ccsid-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 is read in the CCSID of the object that holds it
The evaluator read every text constant through the CCSID 037 table. The creation
record of a module stores the CCSID it was compiled under in bytes 200 and 201
of its first section (
0x0111for 273,0x0025for 037, measured on twocompiles of one probe). The held-out exam and the host that compiles the public
probes are CCSID 273, where
!is 4F and|is BB; read as 037, 4F became|,and the rebuilt object got another byte for the character.
Rendering a hex literal for every non-invariant character, the first answer
(v0.1.364), made the strings twice as long and pushed statements past the
100-column line, which moved every later statement and broke the operation
families of the exam. The text is now read through the table of the module's
CCSID:
rpg_ccsid273.zigholds the 21 bytes where 273 differs from 037,measured by compiling every printable Latin-1 character (
ftwin16). A bytewhose character is not printable ASCII still writes the whole constant as a hex
literal.
ftwin15-y3is the public reproduction ('a|b!c'compiled under 273).Gates