<?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>76054</bug_id>
          
          <creation_ts>2012-01-11 05:30:34 -0800</creation_ts>
          <short_desc>[GTK] Web process should use the same locale as the UI process</short_desc>
          <delta_ts>2012-01-11 22:59:15 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit2</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Gtk</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Garcia Campos">cgarcia</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>gustavo</cc>
    
    <cc>pnormand</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>533818</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2012-01-11 05:30:34 -0800</bug_when>
    <thetext>For example, unit tests are run with C locale, because gtk_init_test() calls setlocale, but the web process is run with the system locole.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>533819</commentid>
    <comment_count>1</comment_count>
      <attachid>122011</attachid>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2012-01-11 05:32:11 -0800</bug_when>
    <thetext>Created attachment 122011
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>533822</commentid>
    <comment_count>2</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2012-01-11 05:38:18 -0800</bug_when>
    <thetext>(In reply to comment #0)
&gt; For example, unit tests are run with C locale, because gtk_init_test() calls setlocale, but the web process is run with the system locole.

Shouldn&apos;t the WebProcess only set the locale when runned in the tests context then?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>533824</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2012-01-11 05:41:04 -0800</bug_when>
    <thetext>unit tests is just and example, this way we make sure locale will be the same.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>533825</commentid>
    <comment_count>4</comment_count>
      <attachid>122011</attachid>
    <who name="Gustavo Noronha (kov)">gustavo</who>
    <bug_when>2012-01-11 05:42:42 -0800</bug_when>
    <thetext>Comment on attachment 122011
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=122011&amp;action=review

That looks fine to me. I wondered the same thing as Philippe, but I realized having the same locale for all processes would be desired in any case.

&gt; Source/WebKit2/ChangeLog:3
&gt; +        [GTK] Web process should use the same locale than UI process

I think &apos;than&apos; is not correct in this case, I think &apos;as the&apos; would be (notice I am not a native speaker, though)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>533826</commentid>
    <comment_count>5</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2012-01-11 05:43:00 -0800</bug_when>
    <thetext>I mean, the application using wk2 api might call setlocale(). Currently that would only affect the ui process.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>533827</commentid>
    <comment_count>6</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2012-01-11 05:47:37 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; I mean, the application using wk2 api might call setlocale(). Currently that would only affect the ui process.

Ok thanks for the clarification.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>534580</commentid>
    <comment_count>7</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2012-01-11 22:59:15 -0800</bug_when>
    <thetext>Committed r104792: &lt;http://trac.webkit.org/changeset/104792&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>122011</attachid>
            <date>2012-01-11 05:32:11 -0800</date>
            <delta_ts>2012-01-11 05:42:42 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>wk2-child-process-locale.diff</filename>
            <type>text/plain</type>
            <size>1492</size>
            <attacher name="Carlos Garcia Campos">cgarcia</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQyL0No
YW5nZUxvZwppbmRleCA2YjFiYzE0Li41NGQ2ODkzIDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViS2l0
Mi9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYktpdDIvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTQg
QEAKKzIwMTItMDEtMTEgIENhcmxvcyBHYXJjaWEgQ2FtcG9zICA8Y2dhcmNpYUBpZ2FsaWEuY29t
PgorCisgICAgICAgIFtHVEtdIFdlYiBwcm9jZXNzIHNob3VsZCB1c2UgdGhlIHNhbWUgbG9jYWxl
IHRoYW4gVUkgcHJvY2VzcworICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1
Zy5jZ2k/aWQ9NzYwNTQKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKwor
ICAgICAgICAqIFVJUHJvY2Vzcy9MYXVuY2hlci9ndGsvUHJvY2Vzc0xhdW5jaGVyR3RrLmNwcDoK
KyAgICAgICAgKFdlYktpdDo6Y2hpbGRTZXR1cEZ1bmN0aW9uKTogTWFrZSBjaGlsZCBwcm9jZXNz
IHVzZSB0aGUgc2FtZQorICAgICAgICBsb2NhbGUgdGhhbiBpdHMgcGFyZ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udCdzIGxvY2FsZS4KKyAgICBnX3NldGVudigiTENfQUxMIiwgc2V0bG9j
YWxlKExDX0FMTCwgMCksIFRSVUUpOworCiAjaWYgT1MoTElOVVgpCiAgICAgLy8gS2lsbCBjaGls
ZCBwcm9jZXNzIHdoZW4gcGFyZW50IGRpZXMuCiAgICAgcHJjdGwoUFJfU0VUX1BERUFUSFNJRywg
U0lHS0lMTCk7Cg==
</data>
<flag name="review"
          id="122694"
          type_id="1"
          status="+"
          setter="gustavo"
    />
          </attachment>
      

    </bug>

</bugzilla>