Linux cpanel2.daytoncreative.net 2.6.32-754.29.2.el6.x86_64 #1 SMP Tue May 12 17:39:04 UTC 2020 x86_64
Apache/2.4.43 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4
Server IP : 70.62.220.67 & Your IP : 216.73.216.193
Domains :
Cant Read [ /etc/named.conf ]
User : michaelgreg
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
log /
perl-5.20.2 /
ext /
PerlIO-encoding /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
encoding.t
6.09
KB
-r--r--r--
2014-12-27 11:48
fallback.t
1.71
KB
-r--r--r--
2014-12-27 11:49
nolooping.t
513
B
-r--r--r--
2014-12-27 11:48
Save
Rename
#!./perl BEGIN { skip_all("No perlio") unless (find PerlIO::Layer 'perlio'); if (ord("A") == 193) { print "1..0 # Skip: EBCDIC\n"; exit 0; } unless( eval { require Encode } ) { print "1..0 # Skip: No Encode\n"; exit 0; } use Test::More tests => 9; import Encode qw(:fallback_all); } # $PerlIO::encoding = 0; # WARN_ON_ERR|PERLQQ; my $file = "fallback$$.txt"; { my $message = ''; local $SIG{__WARN__} = sub { $message = $_[0] }; $PerlIO::encoding::fallback = Encode::PERLQQ; ok(open(my $fh,">encoding(iso-8859-1)",$file),"opened iso-8859-1 file"); my $str = "\x{20AC}"; print $fh $str,"0.02\n"; close($fh); like($message, qr/does not map to iso-8859-1/o, "FB_WARN message"); } open($fh,$file) || die "File cannot be re-opened"; my $line = <$fh>; is($line,"\\x{20ac}0.02\n","perlqq escapes"); close($fh); $PerlIO::encoding::fallback = Encode::HTMLCREF; ok(open(my $fh,">encoding(iso-8859-1)",$file),"opened iso-8859-1 file"); my $str = "\x{20AC}"; print $fh $str,"0.02\n"; close($fh); open($fh,$file) || die "File cannot be re-opened"; my $line = <$fh>; is($line,"€0.02\n","HTML escapes"); close($fh); { no utf8; open($fh,">$file") || die "File cannot be re-opened"; binmode($fh); print $fh "\xA30.02\n"; close($fh); } ok(open($fh,"<encoding(US-ASCII)",$file),"Opened as ASCII"); my $line = <$fh>; printf "# %x\n",ord($line); is($line,"\\xA30.02\n","Escaped non-mapped char"); close($fh); $PerlIO::encoding::fallback = Encode::WARN_ON_ERROR; ok(open($fh,"<encoding(US-ASCII)",$file),"Opened as ASCII"); my $line = <$fh>; printf "# %x\n",ord($line); is($line,"\x{FFFD}0.02\n","Unicode replacement char"); close($fh); END { 1 while unlink($file); }