Skip to content

read_mime_types() should read the rule file using UTF-8, not the locale encoding #85220

@serhiy-storchaka

Description

@serhiy-storchaka
BPO 41048
Nosy @vstinner, @ned-deily, @serhiy-storchaka, @srinivasreddy, @miss-islington
PRs
  • bpo-41048: mimetypes should read the rule file using UTF-8, not the locale encoding #20998
  • [3.9] bpo-41048: mimetypes should read the rule file using UTF-8, not the locale encoding (GH-20998) #21210
  • [3.8] bpo-41048: mimetypes should read the rule file using UTF-8, not the locale encoding (GH-20998) #21211
  • [3.7] bpo-41048: mimetypes should read the rule file using UTF-8, not the locale encoding (GH-20998). #21229
  • 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 2020-06-30.05:47:12.238>
    created_at = <Date 2020-06-20.09:11:00.162>
    labels = ['easy', 'type-bug', '3.8', '3.9', '3.10', 'library']
    title = 'read_mime_types() should read the rule file using UTF-8, not the locale encoding'
    updated_at = <Date 2020-06-30.05:47:12.237>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2020-06-30.05:47:12.237>
    actor = 'ned.deily'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-06-30.05:47:12.238>
    closer = 'ned.deily'
    components = ['Library (Lib)']
    creation = <Date 2020-06-20.09:11:00.162>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 41048
    keywords = ['patch', 'easy']
    message_count = 5.0
    messages = ['371925', '372554', '372565', '372566', '372655']
    nosy_count = 5.0
    nosy_names = ['vstinner', 'ned.deily', 'serhiy.storchaka', 'thatiparthy', 'miss-islington']
    pr_nums = ['20998', '21210', '21211', '21229']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue41048'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.8 (EOL)end of life3.9 (EOL)end of lifeeasystdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error
      No fields configured for issues without a type.

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions