Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getlocale(LC_ALL) behavior #58350

Closed
skrah mannequin opened this issue Feb 27, 2012 · 1 comment
Closed

getlocale(LC_ALL) behavior #58350

skrah mannequin opened this issue Feb 27, 2012 · 1 comment
Labels
type-bug An unexpected behavior, bug, or error

Comments

@skrah
Copy link
Mannequin

skrah mannequin commented Feb 27, 2012

BPO 14142
Nosy @skrah

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2014-05-13.21:52:04.122>
created_at = <Date 2012-02-27.17:33:13.672>
labels = ['type-bug']
title = 'getlocale(LC_ALL) behavior'
updated_at = <Date 2014-05-13.21:52:04.121>
user = 'https://github.com/skrah'

bugs.python.org fields:

activity = <Date 2014-05-13.21:52:04.121>
actor = 'skrah'
assignee = 'none'
closed = True
closed_date = <Date 2014-05-13.21:52:04.122>
closer = 'skrah'
components = []
creation = <Date 2012-02-27.17:33:13.672>
creator = 'skrah'
dependencies = []
files = []
hgrepos = []
issue_num = 14142
keywords = []
message_count = 1.0
messages = ['154495']
nosy_count = 1.0
nosy_names = ['skrah']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue14142'
versions = ['Python 3.3']

@skrah
Copy link
Mannequin Author

skrah mannequin commented Feb 27, 2012

This came up in bpo-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.

@skrah skrah mannequin closed this as completed May 13, 2014
@skrah skrah mannequin added the type-bug An unexpected behavior, bug, or error label May 13, 2014
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

0 participants