Re: sre is broken in SuSE 9.2
Serge Orlov wrote:
[color=blue][color=green][color=darkred]
>> >>> re.compile(ur'\ w+', re.U).findall(u '\xb5\xba\xe4\u 0430')[/color]
>> [u'\xb5\xba\xe4\ u0430'][/color]
>
> I can't find the strict definition of isalpha, but I believe average
> C program shouldn't care about the current locale alphabet, so isalpha
> is a union of all supported characters in all alphabets[/color]
nope. isalpha() depends on the locale, as does all other ctype functions
(this also applies to wctype, on some platforms).
</F>
Serge Orlov wrote:
[color=blue][color=green][color=darkred]
>> >>> re.compile(ur'\ w+', re.U).findall(u '\xb5\xba\xe4\u 0430')[/color]
>> [u'\xb5\xba\xe4\ u0430'][/color]
>
> I can't find the strict definition of isalpha, but I believe average
> C program shouldn't care about the current locale alphabet, so isalpha
> is a union of all supported characters in all alphabets[/color]
nope. isalpha() depends on the locale, as does all other ctype functions
(this also applies to wctype, on some platforms).
</F>
Comment