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 pitrou
Recipients Alexander.Pyhalov, ezio.melotti, pitrou, r.david.murray, vstinner
Date 2013-12-22.14:48:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1387723733.59.0.499395564952.issue20049@psf.upfronthosting.co.za>
In-reply-to
Content
To elaborate yet a bit, I agree with the following statement in the aforementioned [illumos-devel] discussion thread:

"""In further explanation, the isalpha() and friends *should* probably return false for the value 196, or any other byte with high order bit set, in UTF-8 locales."""
http://thread.gmane.org/gmane.os.illumos.devel/14193/focus=14206

I'll also point out that the code examples in the POSIX spec use islower() exactly like Python does (on arbitrary integers) between 0 and 255:

http://pubs.opengroup.org/onlinepubs/9699919799/functions/islower.html

    c = (unsigned char) (rand() % 256);
...
    if (islower(c))
        keystr[len++] = c;
    }
...
History
Date User Action Args
2013-12-22 14:48:53pitrousetrecipients: + pitrou, vstinner, ezio.melotti, r.david.murray, Alexander.Pyhalov
2013-12-22 14:48:53pitrousetmessageid: <1387723733.59.0.499395564952.issue20049@psf.upfronthosting.co.za>
2013-12-22 14:48:53pitroulinkissue20049 messages
2013-12-22 14:48:52pitroucreate