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

mimetypes.py UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128) #60821

Closed
VladimirKotulskiy mannequin opened this issue Dec 5, 2012 · 2 comments
Labels
OS-windows topic-unicode type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@VladimirKotulskiy
Copy link
Mannequin

VladimirKotulskiy mannequin commented Dec 5, 2012

BPO 16617
Nosy @amauryfa, @ezio-melotti
Superseder
  • bpo-9291: mimetypes initialization fails on Windows because of non-Latin characters in registry
  • Files
  • mimetypes.patch
  • 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 2012-12-05.17:23:19.771>
    created_at = <Date 2012-12-05.17:05:26.526>
    labels = ['expert-unicode', 'OS-windows', 'type-crash']
    title = "mimetypes.py UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)"
    updated_at = <Date 2012-12-05.17:23:19.756>
    user = 'https://bugs.python.org/VladimirKotulskiy'

    bugs.python.org fields:

    activity = <Date 2012-12-05.17:23:19.756>
    actor = 'amaury.forgeotdarc'
    assignee = 'none'
    closed = True
    closed_date = <Date 2012-12-05.17:23:19.771>
    closer = 'amaury.forgeotdarc'
    components = ['Unicode', 'Windows']
    creation = <Date 2012-12-05.17:05:26.526>
    creator = 'Vladimir.Kotulskiy'
    dependencies = []
    files = ['28210']
    hgrepos = []
    issue_num = 16617
    keywords = ['patch']
    message_count = 2.0
    messages = ['176990', '176994']
    nosy_count = 3.0
    nosy_names = ['amaury.forgeotdarc', 'ezio.melotti', 'Vladimir.Kotulskiy']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = None
    status = 'closed'
    superseder = '9291'
    type = 'crash'
    url = 'https://bugs.python.org/issue16617'
    versions = ['Python 2.7']

    @VladimirKotulskiy
    Copy link
    Mannequin Author

    VladimirKotulskiy mannequin commented Dec 5, 2012

    File "C:\DevTools\Python27\lib\mimetypes.py", line 355, in init
    db.read_windows_registry()
    File "C:\DevTools\Python27\lib\mimetypes.py", line 259, in read_windows_registry
    for ctype in enum_types(mimedb):
    File "C:\DevTools\Python27\lib\mimetypes.py", line 249, in enum_types
    ctype = ctype.encode(default_encoding) # omit in 3.x!
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128)

    @VladimirKotulskiy VladimirKotulskiy mannequin added topic-unicode OS-windows type-crash A hard crash of the interpreter, possibly with a core dump labels Dec 5, 2012
    @amauryfa
    Copy link
    Member

    amauryfa commented Dec 5, 2012

    This is a duplicate of bpo-9291.

    @amauryfa amauryfa closed this as completed Dec 5, 2012
    @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
    OS-windows topic-unicode type-crash A hard crash of the interpreter, possibly with a core dump
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant