Click here to get back home

make test fails, ExtTest dir

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
make test fails, ExtTest dir rossdruker 09-15-2005
Posted by rossdruker on September 15, 2005, 9:46 am
Please log in for more thread options
>>
>> [snip]
>>
>> > if I print "$1\n",
>> > the file prints just fine. But, if I do something like print "$1 after
>> > \n", the whole output is messed up. If I print "before $1\n", nothing
>> > prints at all. If I print "before $1 after\n", only after prints.
>>
>> not really sure, but could be a rogue "\r" in $1,


> There
> is a rogue carriage return (0xd) in the string

> Is there something I can do to deal with this
> situation?


Repair the corrupted file:

perl -p -i -e 'tr/\r//d' bad_file


--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas

Posted by Anno Siegel on September 16, 2005, 11:04 am
Please log in for more thread options
>>
>> [snip]
>>
>> > if I print "$1\n",
>> > the file prints just fine. But, if I do something like print "$1 after
>> > \n", the whole output is messed up. If I print "before $1\n", nothing
>> > prints at all. If I print "before $1 after\n", only after prints.
>>
>> not really sure, but could be a rogue "\r" in $1,


> There
> is a rogue carriage return (0xd) in the string

> Is there something I can do to deal with this
> situation?


Repair the corrupted file:

perl -p -i -e 'tr/\r//d' bad_file


--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas

Similar ThreadsPosted
Math::GMP make test fails. January 5, 2007, 1:25 am
Net::SSH::Perl make test fails January 11, 2007, 1:06 pm
5.8.5 make test fails on lib/ExtUtils/Constant with icc August 25, 2004, 5:36 am
TEST Fails. December 2, 2005, 5:03 am
perl embedding test fails on z/OS January 6, 2005, 10:53 pm
make on TK fails on Solaris 10 November 8, 2007, 5:38 pm
make test March 27, 2008, 6:23 pm
Template-Toolkit-2.14 fails make on FC3 August 27, 2005, 9:23 am
GD.pm make test failed, help please? September 7, 2004, 2:09 am
question on "make test" June 19, 2006, 3:31 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap