Title: os.listdir can return byte strings · Issue #47437 · python/cpython · GitHub
Open Graph Title: os.listdir can return byte strings · Issue #47437 · python/cpython
X Title: os.listdir can return byte strings · Issue #47437 · python/cpython
Description: BPO 3187 Nosy @gvanrossum, @loewis, @birkenfeld, @amauryfa, @pitrou, @vstinner, @benjaminp, @djc Files posix_path_bytes.patch: Patch posixpath.join() to support bytesio_byte_filename.patch: open() allows bytes filenamefnmatch_bytes.patch...
Open Graph Description: BPO 3187 Nosy @gvanrossum, @loewis, @birkenfeld, @amauryfa, @pitrou, @vstinner, @benjaminp, @djc Files posix_path_bytes.patch: Patch posixpath.join() to support bytesio_byte_filename.patch: open() ...
X Description: BPO 3187 Nosy @gvanrossum, @loewis, @birkenfeld, @amauryfa, @pitrou, @vstinner, @benjaminp, @djc Files posix_path_bytes.patch: Patch posixpath.join() to support bytesio_byte_filename.patch: open() ...
Opengraph URL: https://github.com/python/cpython/issues/47437
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"os.listdir can return byte strings","articleBody":"BPO | [3187](https://bugs.python.org/issue3187)\n--- | :---\nNosy | @gvanrossum, @loewis, @birkenfeld, @amauryfa, @pitrou, @vstinner, @benjaminp, @djc\nFiles | \u003cli\u003e[posix_path_bytes.patch](https://bugs.python.org/file11212/posix_path_bytes.patch \"Uploaded as text/plain at 2008-08-22.15:19:39 by @vstinner\"): Patch posixpath.join() to support bytes\u003c/li\u003e\u003cli\u003e[io_byte_filename.patch](https://bugs.python.org/file11213/io_byte_filename.patch \"Uploaded as text/plain at 2008-08-22.15:33:58 by @vstinner\"): open() allows bytes filename\u003c/li\u003e\u003cli\u003e[fnmatch_bytes.patch](https://bugs.python.org/file11215/fnmatch_bytes.patch \"Uploaded as text/plain at 2008-08-22.16:53:48 by @vstinner\"): Patch fnmatch.filter() to accept bytes filenames\u003c/li\u003e\u003cli\u003e[glob1_bytes.patch](https://bugs.python.org/file11216/glob1_bytes.patch \"Uploaded as text/plain at 2008-08-22.16:54:49 by @vstinner\"): Fix glob.glob() to accept invalid directory name\u003c/li\u003e\u003cli\u003e[listdir_encoding_warning.patch](https://bugs.python.org/file11549/listdir_encoding_warning.patch \"Uploaded as text/plain at 2008-09-21.23:48:14 by @benjaminp\")\u003c/li\u003e\u003cli\u003e[warn_at_the_end.patch](https://bugs.python.org/file11550/warn_at_the_end.patch \"Uploaded as text/plain at 2008-09-21.23:48:36 by @benjaminp\")\u003c/li\u003e\u003cli\u003e[raise_decoding_errors.patch](https://bugs.python.org/file11581/raise_decoding_errors.patch \"Uploaded as text/plain at 2008-09-23.23:05:40 by @benjaminp\")\u003c/li\u003e\u003cli\u003e[force_unicode.patch](https://bugs.python.org/file11630/force_unicode.patch \"Uploaded as text/plain at 2008-09-27.00:48:24 by @benjaminp\")\u003c/li\u003e\u003cli\u003e[getcwd_bytes.patch](https://bugs.python.org/file11632/getcwd_bytes.patch \"Uploaded as text/plain at 2008-09-27.14:50:29 by @vstinner\"): getcwd() returns bytes if unicode conversion fails\u003c/li\u003e\u003cli\u003e[merge_os_getcwd_getcwdu.patch](https://bugs.python.org/file11652/merge_os_getcwd_getcwdu.patch \"Uploaded as text/plain at 2008-09-29.12:51:31 by @vstinner\"): Remove os.getcwdu(); os.getcwd(bytes=True) returns bytes\u003c/li\u003e\u003cli\u003e[os_getcwdb.patch](https://bugs.python.org/file11655/os_getcwdb.patch \"Uploaded as text/plain at 2008-09-29.15:58:45 by @vstinner\"): Fix getcwd() (use PyUnicode_Decode) and create getcwdb()-\u003ebytes\u003c/li\u003e\u003cli\u003e[python3_bytes_filename.patch](https://bugs.python.org/file11658/python3_bytes_filename.patch \"Uploaded as text/plain at 2008-09-30.01:08:09 by @vstinner\"): Patch for an initial support of bytes filename in Python3\u003c/li\u003e\u003cli\u003e[setfsenc.diff](https://bugs.python.org/file11663/setfsenc.diff \"Uploaded as text/plain at 2008-09-30.15:21:14 by @loewis\")\u003c/li\u003e\u003cli\u003e[python3_bytes_filename-3.patch](https://bugs.python.org/file11680/python3_bytes_filename-3.patch \"Uploaded as text/plain at 2008-10-02.17:10:44 by @vstinner\"): Patch for an initial support of bytes filename in Python3 (version 3)\u003c/li\u003e\u003cli\u003e[win32-bytes-filenames.patch](https://bugs.python.org/file11685/win32-bytes-filenames.patch \"Uploaded as text/plain at 2008-10-03.01:45:39 by @amauryfa\")\u003c/li\u003e\u003cli\u003e[macpath.patch](https://bugs.python.org/file11693/macpath.patch \"Uploaded as text/plain at 2008-10-03.21:21:22 by @amauryfa\")\u003c/li\u003e\u003cli\u003e[library_os_doc.patch](https://bugs.python.org/file11721/library_os_doc.patch \"Uploaded as text/plain at 2008-10-06.23:34:56 by @vstinner\")\u003c/li\u003e\n\n\u003csup\u003e*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*\u003c/sup\u003e\n\n\u003cdetails\u003e\u003csummary\u003eShow more details\u003c/summary\u003e\u003cp\u003e\n\nGitHub fields:\n```python\nassignee = 'https://github.com/birkenfeld'\nclosed_at = \u003cDate 2008-10-07.07:12:42.880\u003e\ncreated_at = \u003cDate 2008-06-24.10:28:25.633\u003e\nlabels = ['type-bug', 'docs']\ntitle = 'os.listdir can return byte strings'\nupdated_at = \u003cDate 2008-10-07.07:12:42.879\u003e\nuser = 'https://bugs.python.org/HWJ'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2008-10-07.07:12:42.879\u003e\nactor = 'loewis'\nassignee = 'georg.brandl'\nclosed = True\nclosed_date = \u003cDate 2008-10-07.07:12:42.880\u003e\ncloser = 'loewis'\ncomponents = ['Documentation']\ncreation = \u003cDate 2008-06-24.10:28:25.633\u003e\ncreator = 'HWJ'\ndependencies = []\nfiles = ['11212', '11213', '11215', '11216', '11549', '11550', '11581', '11630', '11632', '11652', '11655', '11658', '11663', '11680', '11685', '11693', '11721']\nhgrepos = []\nissue_num = 3187\nkeywords = ['patch']\nmessage_count = 79.0\nmessages = ['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']\nnosy_count = 13.0\nnosy_names = ['gvanrossum', 'loewis', 'georg.brandl', 'amaury.forgeotdarc', 'pitrou', 'vstinner', 'draghuram', 'benjamin.peterson', 'djc', 'HWJ', 'dlitz', 'zegreek', 'bboissin']\npr_nums = []\npriority = 'critical'\nresolution = 'accepted'\nstage = None\nstatus = 'closed'\nsuperseder = None\ntype = 'behavior'\nurl = 'https://bugs.python.org/issue3187'\nversions = ['Python 3.0']\n```\n\n\u003c/p\u003e\u003c/details\u003e\n","author":{"url":"https://github.com/HWJ","@type":"Person","name":"HWJ"},"datePublished":"2008-06-24T10:28:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":79},"url":"https://github.com/47437/cpython/issues/47437"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a5111457-51c8-eb96-a021-ea212e1d43c5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D17E:2CEF06:77860:9C6E6:6A4D7A10 |
| html-safe-nonce | e20f6be65dde23a83488ab285a807c74ddf9b11135a239d72f3efd39e3011d24 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTdFOjJDRUYwNjo3Nzg2MDo5QzZFNjo2QTREN0ExMCIsInZpc2l0b3JfaWQiOiI4NTkzOTIxMDI2NjgwMDc5NTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4791c92376b2573ff7a6f76f3ed4e3bb8ccdd5114b9ed13d0e88bb20028c9168 |
| hovercard-subject-tag | issue:1198832964 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/47437/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ae43499b78c817d6acb622c64cc81531b06f2f53411e346e7357281df8eea9a3/python/cpython/issues/47437 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ae43499b78c817d6acb622c64cc81531b06f2f53411e346e7357281df8eea9a3/python/cpython/issues/47437 |
| og:image:alt | BPO 3187 Nosy @gvanrossum, @loewis, @birkenfeld, @amauryfa, @pitrou, @vstinner, @benjaminp, @djc Files posix_path_bytes.patch: Patch posixpath.join() to support bytesio_byte_filename.patch: open() ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | HWJ |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7f8e15305e2ab58890ca84b830615e375f5df303cf471cafcba0c08272981be3 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8608b0750fc35e283e5ec5b094bff942d7a0e197 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width