Skip to content

Incorrect usage of PyUnicode_CompareWithASCIIString in suggestions.c #106025

Description

@pablogsal
          It can only be used if the second argument is ASCII string. `item_str` is UTF-8 string. The behavior in such case is not defined.

Originally posted by @serhiy-storchaka in #27197 (comment)

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions