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

Use const char* instead of const w_char_t* #799

Closed
wants to merge 2 commits into from

Conversation

tobiolo
Copy link
Collaborator

@tobiolo tobiolo commented Jan 9, 2025

Rationale: wxWidgets macro for localization only uses const char, so let's clean up the whole code. Only use w_char_t where it is absolutely necessary (Windows API).

@tobiolo tobiolo requested a review from aardappel January 9, 2025 17:26
@tobiolo tobiolo force-pushed the const-char branch 2 times, most recently from c4c2d32 to 9e98245 Compare January 9, 2025 17:47
@tobiolo
Copy link
Collaborator Author

tobiolo commented Jan 9, 2025

We could also instead use std::string with the s suffix but this looks not so cluttered.

@tobiolo
Copy link
Collaborator Author

tobiolo commented Jan 9, 2025

I think as long as we stick to UTF-8 encoding this should work?

@aardappel
Copy link
Owner

See my comments on your other similar PR. While this seems nice (I much prefer UTF-8 everywhere), I don't understand why this is suddenly possible/necessary, and how it affects builds against various versions of wxWidgets.

@tobiolo
Copy link
Collaborator Author

tobiolo commented Jan 10, 2025

You are absolutely right: I asked upstream.
wxWidgets/wxWidgets@3dddaeb#commitcomment-151169404

@tobiolo
Copy link
Collaborator Author

tobiolo commented Jan 10, 2025

This will be fixed upstream
wxWidgets/wxWidgets#25063

@tobiolo tobiolo closed this Jan 10, 2025
@tobiolo tobiolo deleted the const-char branch January 10, 2025 17:08
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