Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dumper.xs: Output orphaned EBCDIC control as octal
This makes the code simpler, and removes the need to worry about and comment on EBCDIC. On ASCII machines there are the C0 controls, the C1 controls, and DEL, which isn't technically in either set. The C0 and DEL controls are treated as low ordinal, and output using octal notation. This commit has no behavior changes on ASCII platforms. On EBCDIC machines, there are 1-1 mappings to the entire set of 65 ASCII controls. All but one are in a single block and have been output using octal. This commit doesn't change the behavior of the 64 single-block controls. There is a lone control that isn't adjacent to the others, orphaned. This commit's only effect is to cause it to be displayed using octal instead of hex. I believe the simplification of the code warrants this change. On extant EBCDIC platforms that Perl supports, this control is 0xFF, named EO or EIGHT ONES, and is somewhat like DEL on ASCII platforms, which we already display as octal, even though it is much higher ordinal than any other control displayed as octal.
- Loading branch information