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

locale: 'utf' is not a known encoding #41727

Closed
doko42 opened this issue Mar 20, 2005 · 3 comments
Closed

locale: 'utf' is not a known encoding #41727

doko42 opened this issue Mar 20, 2005 · 3 comments
Labels
stdlib Python modules in the Lib dir

Comments

@doko42
Copy link
Member

doko42 commented Mar 20, 2005

BPO 1166957
Nosy @birkenfeld, @doko42
Files
  • locale3.diff
  • 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 2005-09-20.07:07:34.000>
    created_at = <Date 2005-03-20.13:32:45.000>
    labels = ['library']
    title = "locale: 'utf' is not a known encoding"
    updated_at = <Date 2005-09-20.07:07:34.000>
    user = 'https://github.com/doko42'

    bugs.python.org fields:

    activity = <Date 2005-09-20.07:07:34.000>
    actor = 'doko'
    assignee = 'none'
    closed = True
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2005-03-20.13:32:45.000>
    creator = 'doko'
    dependencies = []
    files = ['6558']
    hgrepos = []
    issue_num = 1166957
    keywords = ['patch']
    message_count = 3.0
    messages = ['48013', '48014', '48015']
    nosy_count = 2.0
    nosy_names = ['georg.brandl', 'doko']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1166957'
    versions = ['Python 2.4']

    @doko42
    Copy link
    Member Author

    doko42 commented Mar 20, 2005

    checked with glibc-2.3.2 on a Debian/sarge system. The
    locale_alias and the encoding_alias tables map the
    encoding from utf-8, utf8 to utf, which is not a valid
    encoding, at least on this system.

    LANG=de_DE.utf-8 python -c 'import locale;
    locale.resetlocale()'
    Traceback (most recent call last):
      File "<string>", line 1, in ?
      File "/usr/lib/python2.3/locale.py", line 391, in
    resetlocale
        _setlocale(category,
    _build_localename(getdefaultlocale()))
    locale.Error: unsupported locale setting

    @doko42 doko42 closed this as completed Mar 20, 2005
    @doko42 doko42 added the stdlib Python modules in the Lib dir label Mar 20, 2005
    @doko42 doko42 closed this as completed Mar 20, 2005
    @doko42 doko42 added the stdlib Python modules in the Lib dir label Mar 20, 2005
    @birkenfeld
    Copy link
    Member

    Logged In: YES
    user_id=1188172

    This file is one big patch for bpo-1166938, bpo-1166948 and bpo-1166957.

    @doko42
    Copy link
    Member Author

    doko42 commented Sep 20, 2005

    Logged In: YES
    user_id=60903

    already fixed on HEAD, rejected for the branch

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants