pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/38120: www/visitors IE7 / UTF-8 patch



>Number:         38120
>Category:       pkg
>Synopsis:       www/visitors IE7 / UTF-8 patch
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 28 18:35:00 +0000 2008
>Originator:     Petar Bogdanovic
>Release:        NetBSD 4.0
>Organization:
>Environment:
        NetBSD starling.smokva.net 4.0 NetBSD 4.0 (STARLING) #0: Thu Jan 24
        14:30:56 UTC 2008 
root%starling.smokva.net@localhost:/tmp/netbsd/STARLING i386

>Description:
        - Visitors does not know about Internet Explorer 7.
        - Visitors garbles UTF-8 characters with tolower().

>How-To-Repeat:
        Let visitors parse a google search query with URL-encoded UTF-8
        characters.

>Fix:
--- visitors.c.orig     2008-02-25 01:02:30.000000000 +0100
+++ visitors.c  2008-02-25 01:04:29.000000000 +0100
@@ -1435,6 +1435,7 @@
                "MSIE 4", "Explorer 4.x",
                "MSIE 5", "Explorer 5.x",
                "MSIE 6", "Explorer 6.x",
+               "MSIE 7", "Explorer 7.x",
                "MSIE", "Explorer unknown version",
                "Safari", NULL,
                "Konqueror", NULL,
@@ -1543,7 +1544,7 @@
        if (!strncmp(s+3, "cache:", 6))
                return !vi_counter_incr(&vih->googlekeyphrases, "Google Cache 
Access");
        vi_urldecode(urldecoded, s+3, VI_LINE_MAX);
-       vi_strtolower(urldecoded);
+       /* vi_strtolower(urldecoded); */
        page = p ? (1+(atoi(p+7)/10)) : 1;
        snprintf(buf, 64, " (page %d)", page);
        buf[63] = '\0';
@@ -2013,6 +2014,7 @@
        fprintf(fp,
 "<html>\n"
 "<head>\n"
+"<meta content=\"text/html; charset=utf-8\" http-equiv=\"content-type\" />\n"
 "<style>\n"
 "BODY, TD, B, LI, U, DIV, SPAN {\n"
 "      background-color: #ffffff;\n"



Home | Main Index | Thread Index | Old Index