Change by Irit Katriel :
--
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> locale.py resetlocale throws exception on Windows
(getdefaultlocale returns value not usable in setlocale)
___
Python tracker
New submission from Jürgen B:
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):
R. David Murray added the comment:
The code is mostly correct as it exists in the calendar module. You are
running into issue 10466. Per my comment in that issue, it may be possible to
put a workaround into the calendar module, but your suggestion isn't it, since
your code would leave the
Jürgen B added the comment:
Yes, Issue 10466 seems to be the same problem. One could fix this one instance
higher, not necessarily in Calendar.py.
As I said, I have no idea about Python (not yet). You could code this and I
would test it.
--
___