curl / trurl

trurl is a command line tool for URL parsing and manipulation.
https://curl.se/trurl/
Other
3.1k stars 99 forks source link

casecompare: a strncasemp replacement #313

Closed bagder closed 2 months ago

bagder commented 2 months ago

Avoid using strncasecmp() because it relies on and uses the current locale which makes it work differently depending on where it runs. Including locales where 'i' and 'I' are not matching case insensitively.