Skip to content

Fix W1063 warning in IsBlankText by using WideChar($A0) #297

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: master
Choose a base branch
from

Conversation

ewsajjang
Copy link

@ewsajjang ewsajjang commented Feb 27, 2025

This PR fixes the W1063 warning ("Widening given AnsiChar constant to WideChar lost information") in the IsBlankText function. Replace #160 with WideChar($A0) in IsBlankText to avoid W1063 warning.

Compiled and tested with D12, no warning observed.

@carloBarazzetta
Copy link
Contributor

I don't have this warning: what version of Delphi 12 are you compiling with?

@ewsajjang
Copy link
Author

Hello, @carloBarazzetta
Oh, I’m new to PRs and only recently learned that it’s good to discuss things first before submitting one. I’m compiling with Delphi 12.3 Athens in a Korean Windows environment. I think the W1063 warning is appearing because of the Korean locale (CP949), and it might be the same in other locales as well.

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.

3 participants