Skip to content
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

Fix script editor wrongly replaces and quotes non-ASCII letters #97323

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

timothyqiu
Copy link
Member

Fixes #92899

  • Variable names generated when Ctrl-drop files into the script editor
  • Variable names and $/% paths generated when Ctrl-drop nodes into the script editor
  • Class names generated when using a script template

After this PR, String::validate_ascii_identifier() is not used anymore in the codebase except for some related tests. We could remove this method completed after some time if it is still not used.

@timothyqiu timothyqiu added bug topic:editor cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release labels Sep 22, 2024
@timothyqiu timothyqiu added this to the 4.4 milestone Sep 22, 2024
@timothyqiu timothyqiu requested review from a team as code owners September 22, 2024 12:02
Copy link
Member

@AThousandShips AThousandShips left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

core/string/ustring.cpp Outdated Show resolved Hide resolved
@timothyqiu timothyqiu force-pushed the drop-unicode-identifier branch from e104864 to a751c05 Compare September 22, 2024 16:05
@akien-mga akien-mga merged commit 4254946 into godotengine:master Sep 23, 2024
19 checks passed
@akien-mga
Copy link
Member

Thanks!

@timothyqiu timothyqiu deleted the drop-unicode-identifier branch September 23, 2024 14:35
@wayrboy
Copy link

wayrboy commented Sep 23, 2024

Good Job!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release topic:editor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Script editor wrongly replaces and quotes non-ASCII letters
4 participants