diff options
author | Daniel Stenberg <daniel@haxx.se> | 2008-10-15 21:43:48 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2008-10-15 21:43:48 +0000 |
commit | a579d6706436615845f57692921e0891fb6e3719 (patch) | |
tree | 936f3c7c41195e63bfd13c2f2b0151e1db1db397 /lib/gtls.c | |
parent | be760bed7e544136eaa175f0fe58251da1ff6e41 (diff) |
- Pascal Terjan filed bug #2154627
(http://curl.haxx.se/bug/view.cgi?id=2154627) which pointed out that libcurl
uses strcasecmp() in multiple places where it causes failures when the
Turkish locale is used. This is because 'i' and 'I' isn't the same letter so
strcasecmp() on those letters are different in Turkish than in English (or
just about all other languages). I thus introduced a totally new internal
function in libcurl (called Curl_ascii_equal) for doing case insentive
comparisons for english-(ascii?) style strings that thus will make "file"
and "FILE" match even if the Turkish locale is selected.
Diffstat (limited to 'lib/gtls.c')
-rw-r--r-- | lib/gtls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gtls.c b/lib/gtls.c index 89a8079bf..17e3947c9 100644 --- a/lib/gtls.c +++ b/lib/gtls.c @@ -223,9 +223,9 @@ static gnutls_x509_crt_fmt do_file_type(const char *type) { if(!type || !type[0]) return GNUTLS_X509_FMT_PEM; - if(curl_strequal(type, "PEM")) + if(Curl_ascii_equal(type, "PEM")) return GNUTLS_X509_FMT_PEM; - if(curl_strequal(type, "DER")) + if(Curl_ascii_equal(type, "DER")) return GNUTLS_X509_FMT_DER; return -1; } |