mirror of
https://github.com/curl/curl.git
synced 2026-07-31 21:58:08 +03:00
Created Curl_raw_nequal() which does a C-locale string case comparison.
Changed checkprefix() to use it and those instances of strnequal() that compare host names or other protocol strings that are defined to be independent of case in the C locale. This should fix a few more Turkish locale problems.
This commit is contained in:
parent
0abaf22467
commit
bab5183820
10 changed files with 38 additions and 24 deletions
|
|
@ -85,7 +85,7 @@ name_to_level(const char *name)
|
|||
{
|
||||
int i;
|
||||
for(i = 0; i < (int)sizeof(level_names)/(int)sizeof(level_names[0]); i++)
|
||||
if(curl_strnequal(level_names[i].name, name, strlen(name)))
|
||||
if(checkprefix(name, level_names[i].name))
|
||||
return level_names[i].level;
|
||||
return (enum protection_level)-1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue