Skip to content

windows: fix Unicode function and type inconsistencies #12810

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nmlgc
Copy link

@nmlgc nmlgc commented Apr 12, 2025

The surrounding code in all of these instances expects the Unicode variants. Previously, this code mixed Unicode and ANSI/ASCII calls if UNICODE was undefined, which caused type and logic errors. Explicitly spelling out the W removes any reliance on that macro.

I also made an SDL 2 version on this branch.

The surrounding code in all of these instances expects the Unicode
variants. Previously, this code mixed Unicode and ANSI/ASCII calls if
`UNICODE` was undefined, which caused type and logic errors. Explicitly
spelling out the W removes any reliance on that macro.
@nmlgc nmlgc force-pushed the windows_unicode_SDL3 branch from ee7eaff to 6d31c4a Compare April 12, 2025 18:56
@sezero sezero requested a review from slouken April 12, 2025 18:57
Copy link
Contributor

@sezero sezero left a comment

Choose a reason for hiding this comment

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

Looks OK to me at first glance. Let @slouken review too.

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

Successfully merging this pull request may close these issues.

2 participants