Skip to content

Incorrect usage of PyUnicode_CompareWithASCIIString in suggestions.c #106025

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pablogsal opened this issue Jun 23, 2023 · 0 comments
Closed

Incorrect usage of PyUnicode_CompareWithASCIIString in suggestions.c #106025

pablogsal opened this issue Jun 23, 2023 · 0 comments

Comments

@pablogsal
Copy link
Member

pablogsal commented Jun 23, 2023

          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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant