[New-bugs-announce] [issue14142] getlocale(LC_ALL) behavior

Stefan Krah report at bugs.python.org
Mon Feb 27 18:33:14 CET 2012

New submission from Stefan Krah <stefan-usenet at bytereef.org>:

This came up in #14113. getlocale(LC_ALL) is documented to fail, at
least that's how I read this:

   "category may be one of the LC_* values except LC_ALL."

But in fact getlocale(LC_ALL) works if there is no semicolon in the
locale name:

>>> getlocale(LC_ALL)
('en_US', 'ISO8859-1')

I would prefer if getlocale(LC_ALL) fails consistently. If that's
not possible, then this is a documentation issue.

messages: 154495
nosy: skrah
priority: normal
severity: normal
status: open
title: getlocale(LC_ALL) behavior
versions: Python 3.3

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list