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

Replace strcasecmp() with isUTF8() #234

Merged
merged 1 commit into from
Feb 10, 2024
Merged

Replace strcasecmp() with isUTF8() #234

merged 1 commit into from
Feb 10, 2024

Conversation

rockdaboot
Copy link
Owner

@rockdaboot rockdaboot commented Feb 10, 2024

This change increases portability as some libc / compiler combinations doesn't know about strcasecmp().

@@ -333,6 +330,14 @@
return 0;
}

/* Avoid using strcasecmp() or _stricmp() */
static int isUTF8(const char *s) {

Check notice

Code scanning / CodeQL

Unused static function Note

Static function isUTF8 is unreachable
@rockdaboot rockdaboot merged commit 0fdbd1b into master Feb 10, 2024
9 of 13 checks passed
@rockdaboot rockdaboot deleted the avoid-strcasecmp branch February 10, 2024 18:28
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.

1 participant