Marc-Andre Lemburg <m...@egenix.com> added the comment: Piotr Sikora wrote: > > Piotr Sikora <piotr.sik...@frickle.com> added the comment: > > It's the same on OpenBSD (and I'm pretty sure it's true for other BSDs as > well). > >>>> locale.resetlocale() > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/usr/local/lib/python2.6/locale.py", line 523, in resetlocale > _setlocale(category, _build_localename(getdefaultlocale())) > locale.Error: unsupported locale setting >>>> locale._build_localename(locale.getdefaultlocale()) > 'en_US.UTF8' > > Works fine with Marc-Andre's alias table fix. > > Any chances this will be eventually fixed in 2.x?
This can go into Python 2.7, and, of course, into the 3.x branches. ---------- title: locale.normalize strips "-" from UTF-8, which fails on Mac -> locale.normalize strips "-" from UTF-8, which fails on Mac _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10154> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com