Skip to content

Commit

Permalink
os390 isn't necessarily EBCDIC
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson authored and steve-m-hay committed May 22, 2022
1 parent e0f11fe commit 01a98fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Net/Cmd.pm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use Symbol 'gensym';
use Errno 'EINTR';

BEGIN {
if ($^O eq 'os390') {
if (ord "A" == 193) {
require Convert::EBCDIC;

# Convert::EBCDIC->import;
Expand All @@ -41,7 +41,7 @@ use constant DEF_REPLY_CODE => 421;

my %debug = ();

my $tr = $^O eq 'os390' ? Convert::EBCDIC->new() : undef;
my $tr = ord "A" == 193 ? Convert::EBCDIC->new() : undef;

sub toebcdic {
my $cmd = shift;
Expand Down
2 changes: 1 addition & 1 deletion lib/Net/FTP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ use constant TELNET_IAC => 255;
use constant TELNET_IP => 244;
use constant TELNET_DM => 242;

use constant EBCDIC => $^O eq 'os390';
use constant EBCDIC => ord 'A' == 193;

sub new {
my $pkg = shift;
Expand Down

0 comments on commit 01a98fd

Please sign in to comment.