Skip to content

Update isdigit, isalpha, and isalnum to handle Unicode without debug assertions #53

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

Closed
sjanzou opened this issue Mar 21, 2025 · 0 comments · Fixed by #54
Closed

Update isdigit, isalpha, and isalnum to handle Unicode without debug assertions #53

sjanzou opened this issue Mar 21, 2025 · 0 comments · Fixed by #54
Assignees

Comments

@sjanzou
Copy link
Collaborator

sjanzou commented Mar 21, 2025

Issue with debug assertions when using isdigit, isalpha lk functions processing various coordinate formats:

Running this script in Debug mode in Windows, I get an assertion failed error from the LK isdigit() function in lk\src\stdlib.cpp. The script runs fine in Release mode.

x = '51°30′26″N 0°7′39″W';
outln(x);

for (i=0; i<strlen(x); i++ ) {
c = ch(x,i);
d = isdigit(c);
a = isalpha(c);
outln(c + ' ' + d + ' ' + a);
}

Image

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 a pull request may close this issue.

2 participants