[issue20793] locale.setlocale()

2014-02-28 Thread René Fleschenberg
René Fleschenberg added the comment: I see. Thanks for the information. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue20793] locale.setlocale()

2014-02-27 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. There was a lengthy discussion of this behavior a few years ago in Issue3067. At that time it was decided not to change this behavior for 2.7. I'm not sure if the __future__ "unicode_literals" was considered then, however you can work arou

[issue20793] locale.setlocale()

2014-02-27 Thread René Fleschenberg
New submission from René Fleschenberg: locale.setlocale() does not work if you pass it a ``unicode`` object instead of a ``str`` (locale.py, line 576): ``if locale and type(locale) is not type(""):`` Maybe it would be better to do a check like this? ``if locale and not isinstance(loca