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 serhiy.storchaka
Recipients serhiy.storchaka, vstinner
Date 2012-11-05.12:58:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1352120302.4.0.717861742873.issue16414@psf.upfronthosting.co.za>
In-reply-to
Content
If NONASCII is None I suggest the followed fallback code

    for i in range(0x80, 0xFFFF):
        character = chr(i)
        if character.isprintable():
            try:
                if os.fsdecode(os.fsencode(character)) == character:
                    NONASCII = character
                    break
            except UnicodeError:
                pass
History
Date User Action Args
2012-11-05 12:58:22serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner
2012-11-05 12:58:22serhiy.storchakasetmessageid: <1352120302.4.0.717861742873.issue16414@psf.upfronthosting.co.za>
2012-11-05 12:58:22serhiy.storchakalinkissue16414 messages
2012-11-05 12:58:22serhiy.storchakacreate