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

strange behaviour of locale.getlocale() -> None, None #56908

Closed
feth mannequin opened this issue Aug 5, 2011 · 2 comments
Closed

strange behaviour of locale.getlocale() -> None, None #56908

feth mannequin opened this issue Aug 5, 2011 · 2 comments

Comments

@feth
Copy link
Mannequin

feth mannequin commented Aug 5, 2011

BPO 12699
Nosy @vstinner
Superseder
  • bpo-6203: locale documentation doesn't mention that LC_CTYPE is changed at startup
  • 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 2011-08-05.21:34:37.173>
    created_at = <Date 2011-08-05.20:23:11.008>
    labels = []
    title = 'strange behaviour of locale.getlocale() -> None, None'
    updated_at = <Date 2011-08-09.15:46:48.728>
    user = 'https://bugs.python.org/feth'

    bugs.python.org fields:

    activity = <Date 2011-08-09.15:46:48.728>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2011-08-05.21:34:37.173>
    closer = 'ned.deily'
    components = []
    creation = <Date 2011-08-05.20:23:11.008>
    creator = 'feth'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 12699
    keywords = []
    message_count = 2.0
    messages = ['141683', '141828']
    nosy_count = 3.0
    nosy_names = ['vstinner', 'alexis', 'feth']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '6203'
    type = None
    url = 'https://bugs.python.org/issue12699'
    versions = ['Python 2.7']

    @feth
    Copy link
    Mannequin Author

    feth mannequin commented Aug 5, 2011

    Tested on linux arch & debian, freeBSD and MacOSX :

    % python2.7
    [...]
    >>> import locale
    >>> locale.getlocale()
    (None, None)
    >>> locale.getlocale(locale.LC_CTYPE)  #or any type
    (None, None)
    
    % python3.2
    [...]
    >>> import locale
    >>> locale.getlocale()
    ('fr_FR', 'UTF-8')

    We feel this is strange!

    @vstinner
    Copy link
    Member

    vstinner commented Aug 9, 2011

    It should be related to bpo-6203.

    @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
    None yet
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants