diff options
author | corvid <corvid@lavabit.com> | 2011-11-11 04:26:41 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2011-11-11 04:26:41 +0000 |
commit | 980fe05f47b9d6dd8626b5ea021e2c16807ff5ca (patch) | |
tree | 2e5670d74d8fcfb8e7f6b84ffaf5f77b74855746 /src/IO/mime.c | |
parent | 119aa95ed6bc612dd4ef7a3121d9bf220148aaa4 (diff) |
locale-independent ASCII character case handling
Basically, I and i are different letters in Turkic languages, and this
causes problems for str(n)casecmp and toupper/tolower in these locales
when dillo is dealing with ASCII.
Diffstat (limited to 'src/IO/mime.c')
-rw-r--r-- | src/IO/mime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/IO/mime.c b/src/IO/mime.c index 19dc601a..3606d23c 100644 --- a/src/IO/mime.c +++ b/src/IO/mime.c @@ -67,7 +67,7 @@ static Viewer_t Mime_minor_type_fetch(const char *Key, uint_t Size) if (Size) { for ( i = 0; i < MimeMinItemsSize; ++i ) - if (dStrncasecmp(Key, MimeMinItems[i].Name, Size) == 0) + if (dStrnAsciiCasecmp(Key, MimeMinItems[i].Name, Size) == 0) return MimeMinItems[i].Data; } return NULL; @@ -83,7 +83,7 @@ static Viewer_t Mime_major_type_fetch(const char *Key, uint_t Size) if (Size) { for ( i = 0; i < MimeMajItemsSize; ++i ) - if (dStrncasecmp(Key, MimeMajItems[i].Name, Size) == 0) + if (dStrnAsciiCasecmp(Key, MimeMajItems[i].Name, Size) == 0) return MimeMajItems[i].Data; } return NULL; |