Serhiy Storchaka added the comment:

Actually the locale affects case-insensitively matching if use the re.LOCAL 
flag. The set of characters matched by b'[A-Z]' is locale-depending. For 
example in Turkish locale it can include the letters 'İ' and 'ı'. Only 8-bit 
locales are supported, not UTF-8 locales.

In Unicode case-insensitive mode the expression '[A-Z]' matches not only Latin 
uppercase and lowercacase letters A-Z and a-z, but also characters 'İ', 'ı', 
'ſ', and 'K'.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24896>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to