logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: A little locale difficulty: msg#00127

Subject: Re: A little locale difficulty
On Wed, 25 Feb 2004 12:35:35 +0000 (GMT)
Ed Avis <ed@xxxxxxxxxxx> wrote:

> On Wed, 25 Feb 2004, Takeru KOMORIYA wrote:
> 
> >I made small patch for tv_grab_jp. '$t =~ s/\d//g' deletes figures
> >in wide charactors though I expected it to delete [0-9] only.
> 
> Hmm.  It must be because \d is locale-aware.
> 
> I wonder how many Perl programs are buggy (or even insecure) because
> they assume that \d means the digits 0 to 9?  I know I have always
> assumed that.

I haven't thought that it may cause security problem... I agree with
your point of view.

> When you check in your change please add a comment saying why \d
> is not used.

I've just checked in with additional comment.

Thanks,
-----------------------
Takeru Komoriya
 komoriya@xxxxxxxxx
 http://www.paken.org/


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click


<Prev in Thread] Current Thread [Next in Thread>