Skip to content

Convert to unsigned char arguments of isalnum(), etc. #23

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
Open

Convert to unsigned char arguments of isalnum(), etc. #23

wants to merge 1 commit into from

Conversation

retmas
Copy link

@retmas retmas commented Dec 27, 2019

To use functions from <cctype> safely with plain chars (or signed chars), the argument should first be converted to unsigned char.
When using English comments as the very first non-empty line, it's ok. But as soon as other unicode symbols appear...
While it works in release build (not always?), in debug some crt will assert failure.

P.S. PVS Studio doesn't issue that in the project:/

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