From 980fe05f47b9d6dd8626b5ea021e2c16807ff5ca Mon Sep 17 00:00:00 2001 From: corvid Date: Fri, 11 Nov 2011 04:26:41 +0000 Subject: 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. --- src/web.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/web.cc') diff --git a/src/web.cc b/src/web.cc index 74851f2b..48c368be 100644 --- a/src/web.cc +++ b/src/web.cc @@ -95,7 +95,7 @@ int a_Web_dispatch_by_type (const char *Type, DilloWeb *Web, } else { /* A non-RootUrl. At this moment we only handle image-children */ - if (!dStrncasecmp(Type, "image/", 6)) { + if (!dStrnAsciiCasecmp(Type, "image/", 6)) { dw = (Widget*) a_Mime_set_viewer(Type, Web, Call, Data); } else { MSG_HTTP("'%s' cannot be displayed as image; has media type '%s'\n", -- cgit v1.2.3