[issue10498] calendar.LocaleHTMLCalendar.formatyearpage() results in traceback with 'unsupported locale setting' on Windows
R. David Murray added the comment: I'm closing this in favor of issue 21731, which has a proposed (though I believe incorrect) patch. -- resolution: - duplicate stage: test needed - resolved status: open - closed superseder: - Calendar Problem with Windows (XP) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10498 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10498] calendar.LocaleHTMLCalendar.formatyearpage() results in traceback with 'unsupported locale setting' on Windows
Ned Deily n...@acm.org added the comment: Your analysis is correct. Sorry, I should have noted that the OS X UTF8 vs UTF-8 discrepancy has already been discussed in Issue10090 and Issue10154. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10498] calendar.LocaleHTMLCalendar.formatyearpage() results in traceback with 'unsupported locale setting' on Windows
MunSic JEONG rus...@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 rep...@bugs.python.org http://bugs.python.org/issue10498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10498] calendar.LocaleHTMLCalendar.formatyearpage() results in traceback with 'unsupported locale setting' on Windows
MunSic JEONG rus...@gmail.com added the comment: r38027 has following changes. -'utf-8':'UTF-8', +'utf_8':'UTF8', subversion log is: Correct mapping of Python codec name to C encoding name for UTF-8 (the C lib doesn't seem to like UTF-8). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10498] calendar.LocaleHTMLCalendar.formatyearpage() results in traceback with 'unsupported locale setting' on Windows
Changes by MunSic JEONG rus...@gmail.com: -- nosy: +ruseel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10498] calendar.LocaleHTMLCalendar.formatyearpage() results in traceback with 'unsupported locale setting' on Windows
New submission from R. David Murray rdmur...@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 rep...@bugs.python.org http://bugs.python.org/issue10498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10498] calendar.LocaleHTMLCalendar.formatyearpage() results in traceback with 'unsupported locale setting' on Windows
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +skoczian ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10498] calendar.LocaleHTMLCalendar.formatyearpage() results in traceback with 'unsupported locale setting' on Windows
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: See also #10087. -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10498] calendar.LocaleHTMLCalendar.formatyearpage() results in traceback with 'unsupported locale setting' on Windows
Ned Deily n...@acm.org added the comment: Fails on OS X as well for similar reasons. -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com