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

2014-06-12 Thread R. David Murray
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)

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

2010-11-24 Thread Ned Deily
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

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

2010-11-23 Thread MunSic JEONG
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

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

2010-11-23 Thread MunSic JEONG
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

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

2010-11-22 Thread MunSic JEONG
Changes by MunSic JEONG rus...@gmail.com: -- nosy: +ruseel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10498 ___ ___ Python-bugs-list mailing

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

2010-11-21 Thread R. David Murray
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,

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

2010-11-21 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +skoczian ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10498 ___ ___ Python-bugs-list

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

2010-11-21 Thread Alexander Belopolsky
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 ___

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

2010-11-21 Thread Ned Deily
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 ___