Skip to content

platform.linux_distribution() should decode files from UTF-8, not from the locale encoding #61631

@abadger

Description

@abadger
mannequin
BPO 17429
Nosy @loewis, @vstinner, @abadger, @bitdancer
Files
  • 00175-platform-unicode.patch: Patch to use surrogateescape when reading from OS vendor provided file
  • 00175-platform-unicode.patch: Patch to default to utf-8 and fallback to surrogateescape when reading from OS vendor provided file
  • 00175-platform-unicode.patch: 3rd version of the patch. Includes a unittest and some re-arranging of the code to allow the unittest to work.
  • 00175-platform-unicode.patch: 4th version of patch w/ NEWS; rebased against hg default
  • 00175-platform-unicode.patch: 5th version of patch fixing issues raised by r.david.murray
  • 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 2013-12-08.23:26:22.834>
    created_at = <Date 2013-03-15.15:08:30.031>
    labels = ['type-bug']
    title = 'platform.linux_distribution() should decode files from UTF-8, not from the locale encoding'
    updated_at = <Date 2013-12-08.23:28:41.697>
    user = 'https://github.com/abadger'

    bugs.python.org fields:

    activity = <Date 2013-12-08.23:28:41.697>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2013-12-08.23:26:22.834>
    closer = 'vstinner'
    components = []
    creation = <Date 2013-03-15.15:08:30.031>
    creator = 'a.badger'
    dependencies = []
    files = ['29416', '29420', '29508', '29509', '29573']
    hgrepos = []
    issue_num = 17429
    keywords = ['patch']
    message_count = 15.0
    messages = ['184234', '184241', '184267', '184306', '184319', '184634', '184776', '184783', '184918', '185225', '200260', '205616', '205618', '205619', '205620']
    nosy_count = 6.0
    nosy_names = ['loewis', 'vstinner', 'a.badger', 'r.david.murray', 'zbysz', 'python-dev']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'patch review'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue17429'
    versions = ['Python 3.3', 'Python 3.4']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      type-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions