Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generalize to work on EBCDIC systems #64

Merged
merged 2 commits into from Apr 3, 2022

Conversation

khwilliamson
Copy link
Contributor

Perl once again works on EBCDIC platforms, but JSON::PP doesn't. These patches remedy this, and hence also fix some other modules shipped with the Perl core that rely on J:P

When debugging this, I found it more convenient to use the more modern
is() which tells you how something is wrong, not just that something is
wrong.  Both are available in Test::More, used by the test file.
This commit causes this module to pass all its tests on EBCDIC, which
core Perl supports.  Further, it allows other modules shipped with the
Perl distribution to also work on EBCDIC.

Basically, all the commit does is to remove underlying assumptions of
the bit patterns for various characters, instead using mnemonics, or
functions furnished by core that hide the details.

Some of the tests were converted to use a character, U+00B6, that works
on both character sets, instead of the ones previously used, which
appear to have been arbitrarily chosen.
@charsbar charsbar merged commit 9ebd9e3 into makamaka:master Apr 3, 2022
@charsbar
Copy link
Collaborator

charsbar commented Apr 3, 2022

Thank you.

@charsbar charsbar mentioned this pull request Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants