sre is broken in SuSE 9.2

Denis S. Otkidach ods at strana.ru
Fri Feb 11 04:43:08 EST 2005


On 10 Feb 2005 11:49:33 -0800
"Serge Orlov" <Serge.Orlov at gmail.com> wrote:

> This thread is about problems only with LANG=C or LANG=POSIX, it's not
> about other locales. Other locales are working as expected.

You are not right.  I have LANG=de_DE.UTF-8, and the Python test_re.py
doesn't pass.  $LANG doesn't matter if I don't call setlocale. 
Fortunately setting any non-C locale solves the problem for all (I
believe) unicode character:

>>> re.compile(ur'\w+', re.U).findall(u'\xb5\xba\xe4\u0430')
[u'\xb5\xba\xe4\u0430']

-- 
Denis S. Otkidach
http://www.python.ru/      [ru]



More information about the Python-list mailing list