procmail
[Top] [All Lists]

Re: what regexps work?

1997-04-17 08:52:00
On Thu, 10 Apr 1997 13:41:22 -0500 (CDT), "James L. McGill" 
<fishbowl(_at_)fotd(_dot_)netcomi(_dot_)com> said:
On Wed, 9 Apr 1997, Eli the Bearded wrote:

Does procmail use locale for [a-z] expansions? (Perl does not.)

According to Tom Christiansen and Jeffrey Friedl, it does.
How did you determine that it does not?

It used to, but it does no longer.  5.002 and 5.003 were the only
releases in which locales were used by default for \w and company.  The
change was made in response to security concerns about user defined
locales circumventing the use of \w to vet user input in taint checking
scripts.

5.004 provides a lexically scoped pragma for turning it back on.

-- 
Roderick Schertler
roderick(_at_)argon(_dot_)org

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