<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>5152</bug_id>
          
          <creation_ts>2005-09-27 09:16:03 -0700</creation_ts>
          <short_desc>Accept-Language header incorrect locales, only 1 language</short_desc>
          <delta_ts>2005-09-27 13:40:00 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Misc.</component>
          <version>412</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>3510</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Dan Wood">dwood</reporter>
          <assigned_to name="Chris Blumenberg">cblu</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>20666</commentid>
    <comment_count>0</comment_count>
    <who name="Dan Wood">dwood</who>
    <bug_when>2005-09-27 09:16:03 -0700</bug_when>
    <thetext>Summary: The Accept-Language header that webkit sends is not properly dealing with locales (e.g. 
brazilian portuguese), and it only sends one language, even if you have defined multiple ordered 
languages in your system preferences.

To reproduce
* Open up System Preferences -&gt; International -&gt; Language
* Load &lt;http://www.gmdc.org/publicapp/snoop.serv?testParm1=testVal1&amp;testParm2=testVal2&gt; (or 
any other web page showing you the HTTP headers

Now move the following langauges to the top of the list in System Prefs, and reload the page, noticing 
the value of the Accept-language parameter.

For instance  (view in a monspaced font):

Topmost Locale        Expected     Actual
--------------        --------     ------
British English         en-gb       en
Australian English      en-au       en-us
Canadian English (eh?)  en-ca       en-us
Portuguese              pt          pt-pt
Brazilian Portuguese    pt-br       pt-pt
German                  de          de-de
Swiss German            de-ch       de-de
Canadian French         fr-ca       fr-fr
Swiss French            fr-ch       fr-fr


The other issue is that according to &lt;http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html&gt;, you 
can specify multiple languages that your browser accepts; it seems that WebKit should take more than 
just the topmost language in AppleLanguages into account.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20676</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-09-27 13:40:00 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 3510 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>