<?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>148168</bug_id>
          
          <creation_ts>2015-08-18 23:21:20 -0700</creation_ts>
          <short_desc>[Cocoa] Cannot mock the system language</short_desc>
          <delta_ts>2015-08-26 23:02:37 -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>Text</component>
          <version>Other</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Myles C. Maxfield">mmaxfield</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1118853</commentid>
    <comment_count>0</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2015-08-18 23:21:20 -0700</bug_when>
    <thetext>I have gotten a few bugs recently which were only discoverable when the system language was set to non-English. We need some way to mock this so that our tests can run in these other environments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1118906</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2015-08-19 08:58:58 -0700</bug_when>
    <thetext>There is internals.overrideUserPreferredLanguages(). Unfortunately, WebKit and WebCore code is not very consistent, and we often check the language and locale directly.

Also, it&apos;s not always obvious where we should be using system language, and where we should be using system locale.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1121217</commentid>
    <comment_count>2</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2015-08-26 23:02:37 -0700</bug_when>
    <thetext>See also: https://bugs.webkit.org/show_bug.cgi?id=76138</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>