Title: Some Unicode format specifiers are incorrect · Issue #146615 · python/cpython · GitHub
Open Graph Title: Some Unicode format specifiers are incorrect · Issue #146615 · python/cpython
X Title: Some Unicode format specifiers are incorrect · Issue #146615 · python/cpython
Description: Bug report Bug description: Inspired by #146578, I wrote a checker to check all unicode format strings. There are 2 kinds of errors. There are ~8 real mistakes. Comply with C99 for va_list: https://en.cppreference.com/w/c/variadic/va_arg...
Open Graph Description: Bug report Bug description: Inspired by #146578, I wrote a checker to check all unicode format strings. There are 2 kinds of errors. There are ~8 real mistakes. Comply with C99 for va_list: https:/...
X Description: Bug report Bug description: Inspired by #146578, I wrote a checker to check all unicode format strings. There are 2 kinds of errors. There are ~8 real mistakes. Comply with C99 for va_list: https:/...
Opengraph URL: https://github.com/python/cpython/issues/146615
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Some Unicode format specifiers are incorrect","articleBody":"# Bug report\n\n### Bug description:\n\nInspired by #146578, I wrote a [checker](https://github.com/sunmy2019/cpython/tree/py-format-checker/Tools/py-format-checker) to check all unicode format strings.\n\nThere are 2 kinds of errors.\n1) There are ~8 real mistakes.\n2) Comply with C99 for va_list: https://en.cppreference.com/w/c/variadic/va_arg.html\nMost of the changes are `%d` \u003c-\u003e `%ld` for `int` and `Py_ssize_t`.\n\nI opened an draft PR https://github.com/python/cpython/pull/146616 containing only the fixes to display what could be changed. We can discuss and cherry pick some fixes in that PR.\n\n\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-146616\n* gh-146617\n* gh-146618\n* gh-146619\n* gh-146620\n* gh-146634\n* gh-146647\n* gh-146648\n* gh-146649\n* gh-146650\n* gh-146651\n* gh-146652\n* gh-146653\n* gh-146654\n* gh-146655\n* gh-146658\n* gh-147704\n* gh-147705\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/sunmy2019","@type":"Person","name":"sunmy2019"},"datePublished":"2026-03-29T23:23:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/146615/cpython/issues/146615"}
| 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:be105b4f-0c2b-f0ad-bc24-fa21eff2a356 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CF92:358B3C:4A33C81:691AFC4:6A500F96 |
| html-safe-nonce | 1823ffd568e86e2d307e47b0feead309be831e0b9ffef09c83e20be6e2981191 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjkyOjM1OEIzQzo0QTMzQzgxOjY5MUFGQzQ6NkE1MDBGOTYiLCJ2aXNpdG9yX2lkIjoiMTQ3NTg5MzkzNzQyNDA0MzkyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c8ff66481ee3e40348ece7e7e4dab0a590ffed7196d3197019fd37aa03a6e462 |
| hovercard-subject-tag | issue:4166054604 |
| 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/146615/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d8ab7b8ae72a51a6705b9e28b946b461c67b1b18d137dba0170a1c800ed6f72a/python/cpython/issues/146615 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d8ab7b8ae72a51a6705b9e28b946b461c67b1b18d137dba0170a1c800ed6f72a/python/cpython/issues/146615 |
| og:image:alt | Bug report Bug description: Inspired by #146578, I wrote a checker to check all unicode format strings. There are 2 kinds of errors. There are ~8 real mistakes. Comply with C99 for va_list: https:/... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sunmy2019 |
| hostname | github.com |
| expected-hostname | github.com |
| None | fe4f38b24922a1ce81c1708c3793b47c185599b9144ab94f6ca846b00698058d |
| 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 | 42b6390c91978a16f9196c38c7a00e9bf21f37e7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width