Re: [pcre-dev] 8.34-RC1: \s is locale dependent whereas [\s]…

Pàgina inicial
Delete this message
Autor: Ralf Junker
Data:  
A: pcre-dev
Assumpte: Re: [pcre-dev] 8.34-RC1: \s is locale dependent whereas [\s] is not
PCRE developers, did you notice my message? I it describes what I
believe is a bug in PCRE 8.3.4-RC1 which should be addressed before the
final release.

Thank you for your attention,

Ralf

On 21.11.2013 17:08, Ralf Junker wrote:

> PCRE 8.3.4-RC1.
>
> The two patterns below do not match identically. [\s] always matches VT
> but \s only if the current locale defines VT as space.
>
> /[\s]+/
>      > \x09\x0a\x0c\x0d\x0b<

>
> /\s+/
>      > \x09\x0a\x0c\x0d\x0b<

>
> I believe that according to SVN 1363, ChangeLog entry 18, \s should
> always match VT even if the current locale does not define it as such.
>
> Ralf