This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author doko
Recipients
Date 2007-01-11.22:59:32
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
[forwarded from http://bugs.debian.org/405618]

the locales are available on the system; the string.lowercase constant doesn't change.

bug submitter writes:

Hello, if I interpret correctly http://docs.python.org/lib/node746.html
the characters 'é', 'ç' and so on should be members of 
string.lowercase when the locale is set on a french one.

But as you can see here this is not the case:

    % python
    Python 2.4.4 (#2, Oct 20 2006, 00:23:25) 
    [GCC 4.1.2 20061015 (prerelease) (Debian 4.1.1-16.1)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import locale
    >>> locale.setlocale(locale.LC_ALL, '')
    'LC_CTYPE=fr_BE.UTF-8;LC_NUMERIC=fr_BE.UTF-8;LC_TIME=fr_BE.UTF-8;LC_COLLATE=C;LC_MONETARY=fr_BE.UTF-8;LC_MESSAGES=fr_BE.UTF-8;LC_PAPER=fr_BE.UTF-8;LC_NAME=fr_BE.UTF-8;LC_ADDRESS=fr_BE.UTF-8;LC_TELEPHONE=fr_BE.UTF-8;LC_MEASUREMENT=fr_BE.UTF-8;LC_IDENTIFICATION=fr_BE.UTF-8'
    >>> import string
    >>> string.lowercase
    'abcdefghijklmnopqrstuvwxyz'

I also tried to import string before the setlocale call or before the 
import locale call but it did not work either.
History
Date User Action Args
2008-01-20 09:59:10adminlinkissue1633600 messages
2008-01-20 09:59:10admincreate