Author skoczian
Recipients brian.curtin, lemburg, r.david.murray, skoczian, tim.golden
Date 2010-11-21.21:51:54
SpamBayes Score 2.16493e-15
Marked as misclassified No
Message-id <>
In-reply-to <>
Am 21.11.2010 20:04, schrieb R. David Murray:
> R. David Murray<>  added the comment:
> Given the long standing nature of this issue, it seems that the
> priority isn't very high, especially since the bug is revealed not by
> user code but by a diagnostic routine in the stdlib.

It's true that the bug is quite old, but first it crashed my 
application, then I found that doesn't run as a script. I put 
that into the tracker simply because it's so easy to reproduce.

But this is almost as simple (and it's the same bug, isn't it?):

Python 3.1.2 (r312:79149, Mar 20 2010, 22:55:39) [MSC v.1500 64 bit 
(AMD64)] on
Type "help", "copyright", "credits" or "license" for more information.
 >>> import calendar
 >>> kal = calendar.localeHTMLCalendar()
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'localeHTMLCalendar'
 >>> kal = calendar.LocaleHTMLCalendar()
 >>> kal_aus = kal.formatyearpage(2011)
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "C:\Python31\lib\", line 478, in formatyearpage
     a(self.formatyear(theyear, width))
   File "C:\Python31\lib\", line 454, in formatyear
     a(self.formatmonth(theyear, m, withyear=False))
   File "C:\Python31\lib\", line 427, in formatmonth
     a(self.formatmonthname(theyear, themonth, withyear=withyear))
   File "C:\Python31\lib\", line 546, in formatmonthname
     with different_locale(self.locale):
   File "C:\Python31\lib\", line 489, in __enter__
     self.oldlocale = _locale.setlocale(_locale.LC_TIME, self.locale)
   File "C:\Python31\lib\", line 527, in setlocale
     return _setlocale(category, locale)
locale.Error: unsupported locale setting

This would be quite unfunny if I couldn't run my script on Linux instead.

Date User Action Args
2010-11-21 21:51:59skocziansetrecipients: + skoczian, lemburg, tim.golden, r.david.murray, brian.curtin
2010-11-21 21:51:54skoczianlinkissue10466 messages
2010-11-21 21:51:54skocziancreate