Skip to content

os.listdir can return byte strings #47437

@HWJ

Description

@HWJ
mannequin
BPO 3187
Nosy @gvanrossum, @loewis, @birkenfeld, @amauryfa, @pitrou, @vstinner, @benjaminp, @djc
Files
  • posix_path_bytes.patch: Patch posixpath.join() to support bytes
  • io_byte_filename.patch: open() allows bytes filename
  • fnmatch_bytes.patch: Patch fnmatch.filter() to accept bytes filenames
  • glob1_bytes.patch: Fix glob.glob() to accept invalid directory name
  • listdir_encoding_warning.patch
  • warn_at_the_end.patch
  • raise_decoding_errors.patch
  • force_unicode.patch
  • getcwd_bytes.patch: getcwd() returns bytes if unicode conversion fails
  • merge_os_getcwd_getcwdu.patch: Remove os.getcwdu(); os.getcwd(bytes=True) returns bytes
  • os_getcwdb.patch: Fix getcwd() (use PyUnicode_Decode) and create getcwdb()->bytes
  • python3_bytes_filename.patch: Patch for an initial support of bytes filename in Python3
  • setfsenc.diff
  • python3_bytes_filename-3.patch: Patch for an initial support of bytes filename in Python3 (version 3)
  • win32-bytes-filenames.patch
  • macpath.patch
  • library_os_doc.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 = 'https://github.com/birkenfeld'
    closed_at = <Date 2008-10-07.07:12:42.880>
    created_at = <Date 2008-06-24.10:28:25.633>
    labels = ['type-bug', 'docs']
    title = 'os.listdir can return byte strings'
    updated_at = <Date 2008-10-07.07:12:42.879>
    user = 'https://bugs.python.org/HWJ'

    bugs.python.org fields:

    activity = <Date 2008-10-07.07:12:42.879>
    actor = 'loewis'
    assignee = 'georg.brandl'
    closed = True
    closed_date = <Date 2008-10-07.07:12:42.880>
    closer = 'loewis'
    components = ['Documentation']
    creation = <Date 2008-06-24.10:28:25.633>
    creator = 'HWJ'
    dependencies = []
    files = ['11212', '11213', '11215', '11216', '11549', '11550', '11581', '11630', '11632', '11652', '11655', '11658', '11663', '11680', '11685', '11693', '11721']
    hgrepos = []
    issue_num = 3187
    keywords = ['patch']
    message_count = 79.0
    messages = ['68674', '68679', '68684', '68685', '68686', '68688', '68689', '70943', '70953', '71525', '71612', '71615', '71624', '71629', '71647', '71648', '71655', '71680', '71699', '71700', '71705', '71748', '71749', '71751', '71752', '71756', '71757', '71769', '71991', '72495', '73362', '73534', '73535', '73540', '73678', '73680', '73688', '73909', '73910', '73911', '73925', '73926', '73992', '73999', '74000', '74006', '74007', '74008', '74027', '74032', '74059', '74080', '74083', '74101', '74173', '74186', '74192', '74222', '74236', '74237', '74240', '74241', '74242', '74246', '74255', '74256', '74257', '74266', '74267', '74268', '74270', '74271', '74275', '74276', '74277', '74409', '74412', '74414', '74426']
    nosy_count = 13.0
    nosy_names = ['gvanrossum', 'loewis', 'georg.brandl', 'amaury.forgeotdarc', 'pitrou', 'vstinner', 'draghuram', 'benjamin.peterson', 'djc', 'HWJ', 'dlitz', 'zegreek', 'bboissin']
    pr_nums = []
    priority = 'critical'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue3187'
    versions = ['Python 3.0']

    Metadata

    Metadata

    Assignees

    Labels

    docsDocumentation in the Doc dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions