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

MunSic JEONG report at bugs.python.org
Wed Nov 24 06:08:38 CET 2010


MunSic JEONG <ruseel at gmail.com> added the comment:

On OSX, _locale.setlocale raise locale.Error with arg 'UTF8' but ok with 'UTF-8'. and setlocale tries to normalize localename with locale.normalize(). and locale.normalize() always change encoding to 'UTF8' (locale.py:646). 

So changes in locale.normalize could fix this issue at least on OSX. 

patch and unittest against p3k is attached.



I did not search why normalize() changes 'utf_8' to 'UTF8' until now. but I would post if I get answer in subversion log.

----------
keywords: +patch
Added file: http://bugs.python.org/file19793/issue10498.patch

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


More information about the Python-bugs-list mailing list