Click here to get back home

taint issues in utf8_heavy.pl

 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
taint issues in utf8_heavy.pl rider.hibiki 08-23-2006
Posted by rider.hibiki on August 23, 2006, 7:43 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
Taint and $0 January 9, 2007, 4:37 pm
fork and taint April 5, 2006, 12:20 pm
Taint problem with ActiveState January 17, 2005, 12:23 pm
taint mode and require using "." April 5, 2006, 2:47 am
Taint and memory usage September 13, 2006, 5:00 pm
How to turn off taint checking in cgi July 10, 2007, 9:18 am
de-taint doesn't work after upgrading perl January 8, 2005, 2:49 pm
crash on fork in taint mode June 27, 2006, 2:52 pm
crash on async in taint mode June 28, 2006, 5:53 pm
need simple beep and taint mode July 2, 2006, 5:28 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap