<?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>93985</bug_id>
          
          <creation_ts>2012-08-14 09:47:01 -0700</creation_ts>
          <short_desc>-webkit-locale should be inferred from system language</short_desc>
          <delta_ts>2013-03-19 15:17:11 -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>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>10874</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>efidler</cc>
    
    <cc>esprehn</cc>
    
    <cc>falken</cc>
    
    <cc>jshin</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>695069</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-08-14 09:47:01 -0700</bug_when>
    <thetext>Consider the following HTML document:

&lt;html&gt;
&lt;body&gt;
&lt;p&gt;John said &lt;q&gt;Mary said &lt;q&gt;blah&lt;/q&gt; to me.&lt;/q&gt;&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;

All these quotes will be displayed as ASCII ones, which is not right.

I think that we should use system language as the last fallback for document language, as this would be correct more often than not. Of course, lang attribute or HTTP headers would still have precedence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>837826</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-02-20 15:19:29 -0800</bug_when>
    <thetext>&lt;rdar://problem/13258070&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>850876</commentid>
    <comment_count>2</comment_count>
    <who name="Matt Falkenhagen">falken</who>
    <bug_when>2013-03-07 22:21:56 -0800</bug_when>
    <thetext>A related Chromium bug is https://code.google.com/p/chromium/issues/detail?id=179331</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>850898</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-03-07 23:08:02 -0800</bug_when>
    <thetext>This should be pretty easy to do, we already track system language in WebCore (on Mac).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>850899</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-03-07 23:08:53 -0800</bug_when>
    <thetext>(and many other WebKit based browsers have the language user configurable)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>858789</commentid>
    <comment_count>5</comment_count>
    <who name="Jungshik Shin">jshin</who>
    <bug_when>2013-03-19 15:15:25 -0700</bug_when>
    <thetext>bug 18085 is also related. The precedence order would be 

1. explicit lang/xml:lang (and Content-Language)
2. charset to lang mapping
3. OS/System language (or UI langauge if UI language is different from OS/System language)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>858790</commentid>
    <comment_count>6</comment_count>
    <who name="Jungshik Shin">jshin</who>
    <bug_when>2013-03-19 15:17:11 -0700</bug_when>
    <thetext>BTW, when we do step #2, we also have to take into account system/UI language to break the degeneracy (ISO-8859-1, windows-1252 : what to map to? &apos;en&apos; is a good fallback, but if the system/UI language is French, &apos;fr&apos; would be better).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>