summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2003-03-14 04:20:51 +0000
committerGurusamy Sarathy <gsar@cpan.org>2003-03-14 04:20:51 +0000
commit0afd3698e368e5016bd4d9f572d1bb76be6998eb (patch)
treeb19717d76cc7a1d6277e93d80de5d642018f37ab
parent44b443f13fc0008dc2fca4fc57565200a6688f44 (diff)
downloadperl-0afd3698e368e5016bd4d9f572d1bb76be6998eb.tar.gz
another fix for failing test on windows ("use encoding" puts
STDIN in :raw mode, so chomp() wasn't stripping the CR) p4raw-id: //depot/perl@18966
-rw-r--r--ext/Encode/t/enc_module.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/Encode/t/enc_module.t b/ext/Encode/t/enc_module.t
index 21312bbfb3..21f0621e77 100644
--- a/ext/Encode/t/enc_module.t
+++ b/ext/Encode/t/enc_module.t
@@ -49,7 +49,7 @@ open STDIN, "<", $file0 or die "$file0:$!";
$obj = Mod_EUCJP->new;
my $i = 0;
while(<STDIN>){
- chomp;
+ s/\r?\n\z//;
is ($cmp[$i++], $_, "encoding vs. STDIN - $i");
}