www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Laverty <gra...@reg.ca>
Subject mod_negotiation/8638: Content negotion cannot interpret IE'S "en-us" language
Date Tue, 30 Oct 2001 15:51:50 GMT

>Number:         8638
>Category:       mod_negotiation
>Synopsis:       Content negotion cannot interpret IE'S "en-us" language
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   apache
>Arrival-Date:   Tue Oct 30 08:00:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     graham@reg.ca
>Release:        all
>Organization:
apache
>Environment:
Server-Linux
Client-Windows 98 (running IE)
>Description:
Internet Explorer sends both the language and the country-code as part of it's "Accept-Languages"
field (ie: en-us or fr-ca).  Content Negotation (mod_negotation) is unable to interpret the
country code and always chooses the default language (making content negotiation for languages
useless under Internet Explorer)
>How-To-Repeat:
Create two files:
hi.html.en
hi.html.fr
Set internet explorers default language (Tools->Internet Options->Languages) to French
(any country).
Notice that when you try to access "hi.html" from IE ONLY the english version hi.html) will
load.  The other "versions" will not load no matter what you type (unless you explicitly type
hi.html.fr)
If you explicitly add the language (ie: AddLanguage fr-ca .fr) to the Apache configuration
file, it works, but short of manually AddLanguage for EVERY single permutation of Languages
and countries in IE, there is no workaround
>Fix:
Implement a workaround (BrowserMatch?) to strip off the "country code" from the languages
IE ouputs.
Or have mod_negiotiation.c strip it off automatically if it detects the "country code".
>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]
 
 


Mime
View raw message