sre is broken in SuSE 9.2
Fredrik Lundh
fredrik at pythonware.com
Thu Feb 10 11:46:06 EST 2005
Denis S. Otkidach wrote:
>> > On all platfroms \w matches all unicode letters when used with flag
>> > re.UNICODE, but this doesn't work on SuSE 9.2:
>>
>> I think Python on SuSE 9.2 uses UCS4 for unicode strings (as does
>> RedHat), check sys.maxunicode.
>>
>> This is not an explanation, but perhaps a hint where to look.
>
> Yes, it uses UCS4. But debian build with UCS4 works fine, so this is
> not a problem. Can --with-wctype-functions configure option be the
> source of problem?
yes.
that option disables Python's own Unicode database, and relies on the C library's
wctype.h (iswalpha, etc) to behave properly for Unicode characters. this isn't true
for all environments.
is this an official SuSE release? do they often release stuff that hasn't been tested
at all?
</F>
More information about the Python-list
mailing list