[issue10498] calendar.LocaleHTMLCalendar.formatyearpage() results in traceback with 'unsupported locale setting' on Windows

R. David Murray report at bugs.python.org
Mon Nov 22 03:35:06 CET 2010


New submission from R. David Murray <rdmurray at bitdance.com>:

See issue 10466 for background, but in short LocaleHTMLCalendar uses getdefaultlocale if no locale is specified, and on windows this results in a locale that setlocale will not accept.  The fix is presumably to use setlocale(LC_DATE, '') instead of getdefaultelocale.

----------
keywords: easy
messages: 122070
nosy: r.david.murray
priority: normal
severity: normal
stage: unit test needed
status: open
title: calendar.LocaleHTMLCalendar.formatyearpage() results in traceback with 'unsupported locale setting' on Windows
type: behavior
versions: Python 2.7, Python 3.1, Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10498>
_______________________________________


More information about the Python-bugs-list mailing list