Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Some Unicode format specifiers are incorrect #146615

Copy link
Copy link
@sunmy2019

Description

@sunmy2019
Issue body actions

Bug report

Bug description:

Inspired by #146578, I wrote a checker to check all unicode format strings.

There are 2 kinds of errors.

  1. There are ~8 real mistakes.
  2. Comply with C99 for va_list: https://en.cppreference.com/w/c/variadic/va_arg.html
    Most of the changes are %d <-> %ld for int and Py_ssize_t.

I opened an draft PR #146616 containing only the fixes to display what could be changed. We can discuss and cherry pick some fixes in that PR.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    extension-modulesC modules in the Modules dirC modules in the Modules dirinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.