Title: Pylauncher does not correctly detect a BOM when searching for the shebang · Issue #131020 · python/cpython · GitHub
Open Graph Title: Pylauncher does not correctly detect a BOM when searching for the shebang · Issue #131020 · python/cpython
X Title: Pylauncher does not correctly detect a BOM when searching for the shebang · Issue #131020 · python/cpython
Description: Bug report Bug description: This is due to cpython/PC/launcher2.c Lines 1080 to 1081 in 475f933 if (bytesRead > 3 && *b == 0xEF) { if (*++b == 0xBB && *++b == 0xBF) { for wich clang-cl creates the following warnings: 1>..\PC\launcher2.c(...
Open Graph Description: Bug report Bug description: This is due to cpython/PC/launcher2.c Lines 1080 to 1081 in 475f933 if (bytesRead > 3 && *b == 0xEF) { if (*++b == 0xBB && *++b == 0xBF) { for wich clang-cl creates the ...
X Description: Bug report Bug description: This is due to cpython/PC/launcher2.c Lines 1080 to 1081 in 475f933 if (bytesRead > 3 && *b == 0xEF) { if (*++b == 0xBB && *++b == 0xBF) { for wich cl...
Opengraph URL: https://github.com/python/cpython/issues/131020
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Pylauncher does not correctly detect a BOM when searching for the shebang","articleBody":"# Bug report\n\n### Bug description:\n\nThis is due to\n\nhttps://github.com/python/cpython/blob/475f933ed8b1c9546f1b5497a2241140c7065b5f/PC/launcher2.c#L1080-L1081\n\nfor wich clang-cl creates the following warnings:\n\n```\n1>..\\PC\\launcher2.c(1080,29): warning : result of comparison of constant 239 with expression of type 'char' is always false [-Wtautological-constant-out-of-range-compare]\n1>..\\PC\\launcher2.c(1081,34): warning : result of comparison of constant 191 with expression of type 'char' is always false [-Wtautological-constant-out-of-range-compare]\n1>..\\PC\\launcher2.c(1081,18): warning : result of comparison of constant 187 with expression of type 'char' is always false [-Wtautological-constant-out-of-range-compare]\n``` \n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nWindows\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-131021\n* gh-131047\n* gh-131048\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/chris-eibl","@type":"Person","name":"chris-eibl"},"datePublished":"2025-03-09T18:39:56Z","url":"https://github.com/python/cpython/issues/131020"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:4a10b311-e749-14fc-8ee4-61e222aa7c47 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B04E:1EFF:B4C0A0:F05994:6B0209BC |
| html-safe-nonce | 943f901432b6f47e2c3ab1559209fbb3914635538a916b58f28f65945cfd6eeb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDRFOjFFRkY6QjRDMEEwOkYwNTk5NDo2QjAyMDlCQyIsInZpc2l0b3JfaWQiOiI1MjgzMTYxNDY5MjcyMzI4NjM2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 79689b84faa91a5fcd522867aab97a1681eb6df859a1b46711ba61062f6f57c4 |
| hovercard-subject-tag | issue:2905601489 |
| 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/131020/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d013b5d057162d8306a268d6ae3e096f424513b4940e4aefd9c022fa176771c2/python/cpython/issues/131020 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d013b5d057162d8306a268d6ae3e096f424513b4940e4aefd9c022fa176771c2/python/cpython/issues/131020 |
| og:image:alt | Bug report Bug description: This is due to cpython/PC/launcher2.c Lines 1080 to 1081 in 475f933 if (bytesRead > 3 && *b == 0xEF) { if (*++b == 0xBB && *++b == 0xBF) { for wich clang-cl creates the ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chris-eibl |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width