Title: gh-146393 bytecodes.c parsing fails with different encodings · Issue #148609 · python/cpython · GitHub
Open Graph Title: gh-146393 bytecodes.c parsing fails with different encodings · Issue #148609 · python/cpython
X Title: gh-146393 bytecodes.c parsing fails with different encodings · Issue #148609 · python/cpython
Description: Bug report Bug description: I’m not sure whether this is a general issue or something specific to my environment, but today I’m unable to build JIT using PCbuild\build.bat --experimental-jit. After bisecting, I found that the problem app...
Open Graph Description: Bug report Bug description: I’m not sure whether this is a general issue or something specific to my environment, but today I’m unable to build JIT using PCbuild\build.bat --experimental-jit. After...
X Description: Bug report Bug description: I’m not sure whether this is a general issue or something specific to my environment, but today I’m unable to build JIT using PCbuild\build.bat --experimental-jit. After...
Opengraph URL: https://github.com/python/cpython/issues/148609
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"gh-146393 bytecodes.c parsing fails with different encodings","articleBody":"# Bug report\n\n### Bug description:\n\nI’m not sure whether this is a general issue or something specific to my environment, but today I’m unable to build JIT using `PCbuild\\build.bat --experimental-jit`.\n\nAfter bisecting, I found that the problem appears after this commit was merged:\nhttps://github.com/python/cpython/commit/95cbd4a232d9a68680059a0cb42e3f0d2994e206\nBelow are the error logs and a screenshot. (My system language is Chinese, so MSVC does not output English messages sorry about that)\n\n\u003cdetails\u003e\n\u003csummary\u003eBuild log\u003c/summary\u003e\n\n```\nPS E:\\cpython\u003e PCbuild\\build.bat --experimental-jit\nUsing \"E:\\cpython\\PCbuild\\\\..\\externals\\pythonx86\\tools\\python.exe\" (found in externals directory)\nFetching external libraries...\nbzip2-1.0.8 already exists, skipping.\nmpdecimal-4.0.0 already exists, skipping.\nsqlite-3.50.4.0 already exists, skipping.\nxz-5.8.1.1 already exists, skipping.\nzlib-ng-2.2.4 already exists, skipping.\nzstd-1.5.7 already exists, skipping.\nFetching external binaries...\nlibffi-3.4.4 already exists, skipping.\nopenssl-bin-3.5.5 already exists, skipping.\ntcltk-8.6.15.0 already exists, skipping.\nllvm-21.1.4.0 already exists, skipping.\nFinished.\nUsing \"D:\\Microsoft Visual Studio\\MSBuild\\Current\\Bin\\msbuild.exe\" (found in the Visual Studio installation)\nUsing \"E:\\cpython\\PCbuild\\\\..\\externals\\pythonx86\\tools\\python.exe\" (found in externals directory)\n\nE:\\cpython\u003e\"D:\\Microsoft Visual Studio\\MSBuild\\Current\\Bin\\msbuild.exe\" \"E:\\cpython\\PCbuild\\pcbuild.proj\" /t:Build /m /nologo /v:m /clp:summary /p:Configuration=Release /p:Platform=x64 /p:IncludeExternals=true /p:IncludeCTypes=true /p:IncludeSSL=true /p:IncludeTkinter=true /p:DisableGil= /p:UseTestMarker= /p:GIT=\"C:\\Program Files\\Git\\cmd\\git.exe\" /p:UseJIT=true /p:UseTIER2=1 /p:PyStats= /p:UseTailCallInterp= /p:DisableRemoteDebug= /p:StackRefDebug= /p:UsePymallocHugepages= \n\n _freeze_module.vcxproj -\u003e E:\\cpython\\PCbuild\\win32\\_freeze_module.exe\n zlib-ng.vcxproj -\u003e E:\\cpython\\PCbuild\\amd64\\zlib-ng.lib\n Killing any running python.exe instances...\n Regenerate Global Objects\n # not changed: E:\\cpython\\Include\\internal\\pycore_global_strings.h\n # not changed: E:\\cpython\\Include\\internal\\pycore_runtime_init_generated.h\n # not changed: E:\\cpython\\Include\\internal\\pycore_unicodeobject_generated.h\n # not changed: E:\\cpython\\Include\\internal\\pycore_global_objects_fini_generated.h\n\n =============================================================\n JIT support for x86_64-pc-windows-msvc is still experimental!\n Please report any issues you encounter.\n =============================================================\n\n Regenerate cases\n Traceback (most recent call last):\n File \"E:\\cpython\\Tools\\cases_generator\\opcode_id_generator.py\", line 61, in \u003cmodule\u003e\n data = analyze_files(args.input)\n File \"E:\\cpython\\Tools\\cases_generator\\analyzer.py\", line 1424, in analyze_files\n return analyze_forest(parser.parse_files(filenames))\n ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^\n File \"E:\\cpython\\Tools\\cases_generator\\parser.py\", line 46, in parse_files\n src = file.read()\n UnicodeDecodeError: 'gbk' codec can't decode byte 0x94 in position 33327: illegal multibyte sequence\n\nE:\\cpython\\PCbuild\\regen.targets(97,5): error MSB3073: Command \"\"E:\\cpython\\PCbuild\\\\..\\externals\\pythonx86\\tools\\python.exe\"\n Tools\\cases_generator\\opcode_id_generator.py Python\\bytecodes.c\" exited with code 1. [E:\\cpython\\PCbuild\\pythoncore.vcxproj]\n\nBuild FAILED.\n\nE:\\cpython\\PCbuild\\regen.targets(97,5): error MSB3073: Command \"\"E:\\cpython\\PCbuild\\\\..\\externals\\pythonx86\\tools\\python.exe\"\n Tools\\cases_generator\\opcode_id_generator.py Python\\bytecodes.c\" exited with code 1. [E:\\cpython\\PCbuild\\pythoncore.vcxproj]\n 0 Warning(s)\n 1 Error(s)\n\nTime Elapsed 00:00:07.25\n```\n\n\u003c/details\u003e\n\u003cimg width=\"1484\" height=\"763\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/bcc09b47-b731-4bc5-a78c-3c2c32e7611a\" /\u003e\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nWindows\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-148611\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/Wulian233","@type":"Person","name":"Wulian233"},"datePublished":"2026-04-15T12:17:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/148609/cpython/issues/148609"}
| 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:9f56ea01-678f-bfe7-2b3c-e1533304be33 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C4C8:371F9B:15DF5D:1DC230:6A526F50 |
| html-safe-nonce | 70818292f6afa6dc0d7d0f4a19b9b38a9b60fb8a70949f98d409307aab52c831 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNEM4OjM3MUY5QjoxNURGNUQ6MURDMjMwOjZBNTI2RjUwIiwidmlzaXRvcl9pZCI6IjI1MjY5NTI5MjY3Mzc0OTM4NDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 282f73a63c854139c78dcccdad860b0bf5c56c46e29dd86783b341969b98799e |
| hovercard-subject-tag | issue:4268837631 |
| 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/148609/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5883a371bfb44d9a1c1b6ffe94d276f255840f20d5706db14c6d3ca448b26be2/python/cpython/issues/148609 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5883a371bfb44d9a1c1b6ffe94d276f255840f20d5706db14c6d3ca448b26be2/python/cpython/issues/148609 |
| og:image:alt | Bug report Bug description: I’m not sure whether this is a general issue or something specific to my environment, but today I’m unable to build JIT using PCbuild\build.bat --experimental-jit. After... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Wulian233 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width