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 Juebo
Recipients Juebo
Date 2014-06-12.11:38:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1402573101.18.0.674315484569.issue21731@psf.upfronthosting.co.za>
In-reply-to
Content
I had a problem with calendar.formatmonth()
Error message was 'Unsupported Locale'

Well, it seems that Windows (XP) does nothing accept to setlocale than ''

I changed /lib/calendar.py line 488 ff to
class different_locale:
    def __init__(self, locale):
        self.locale = locale

    def __enter__(self):
        _locale.setlocale(_locale.LC_TIME, '') # juebo
        self.oldlocale = _locale.getlocale(_locale.LC_TIME)
        # _locale.setlocale(_locale.LC_TIME, self.locale) # juebo

    def __exit__(self, *args):
        # _locale.setlocale(_locale.LC_TIME, self.oldlocale) #juebo
        _locale.setlocale(_locale.LC_TIME, '')

Well, I am absolute new to Python. So could anybody look over it
History
Date User Action Args
2014-06-12 11:38:21Juebosetrecipients: + Juebo
2014-06-12 11:38:21Juebosetmessageid: <1402573101.18.0.674315484569.issue21731@psf.upfronthosting.co.za>
2014-06-12 11:38:21Juebolinkissue21731 messages
2014-06-12 11:38:20Juebocreate