<?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>42755</bug_id>
          
          <creation_ts>2010-07-21 08:10:22 -0700</creation_ts>
          <short_desc>Web Inspector: Almost all inspector tests are failing if comma is used as decimal separator.</short_desc>
          <delta_ts>2010-08-11 00:11:13 -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>Web Inspector (Deprecated)</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Ilya Tikhonovsky">loislo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>bweinstein</cc>
    
    <cc>joepeck</cc>
    
    <cc>keishi</cc>
    
    <cc>krit</cc>
    
    <cc>pfeldman</cc>
    
    <cc>pmuellr</cc>
    
    <cc>rik</cc>
    
    <cc>timothy</cc>
    
    <cc>yurys</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>254288</commentid>
    <comment_count>0</comment_count>
    <who name="Ilya Tikhonovsky">loislo</who>
    <bug_when>2010-07-21 08:10:22 -0700</bug_when>
    <thetext>%subj%</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>254290</commentid>
    <comment_count>1</comment_count>
    <who name="Ilya Tikhonovsky">loislo</who>
    <bug_when>2010-07-21 08:11:28 -0700</bug_when>
    <thetext>Windows with Russian locale.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>254300</commentid>
    <comment_count>2</comment_count>
      <attachid>62183</attachid>
    <who name="Ilya Tikhonovsky">loislo</who>
    <bug_when>2010-07-21 08:18:19 -0700</bug_when>
    <thetext>Created attachment 62183
[patch] initial version.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>254301</commentid>
    <comment_count>3</comment_count>
      <attachid>62183</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2010-07-21 08:19:36 -0700</bug_when>
    <thetext>Comment on attachment 62183
[patch] initial version.

This is a workaround, and not the real fix. The real fix is to change to a String formatting function that is locale independent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>254302</commentid>
    <comment_count>4</comment_count>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2010-07-21 08:23:34 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (From update of attachment 62183 [details])
&gt; This is a workaround, and not the real fix. The real fix is to change to a String formatting function that is locale independent.

It is not clear whether String formatting should be changed as a whole because of this use case. The code being fixed is supposed to produce strings compatible with JSON and it is JSON spec that requires numbers to have &quot;.&quot; separators. Anyways, the fix is incomplete.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>254315</commentid>
    <comment_count>5</comment_count>
      <attachid>62183</attachid>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2010-07-21 08:38:03 -0700</bug_when>
    <thetext>Comment on attachment 62183
[patch] initial version.

Ok, given that 0.5 will be formatted Ok we should land this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>254374</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-07-21 10:04:24 -0700</bug_when>
    <thetext>As Darin said, String formatting needs to be fixed - see also bug 18994.

This is a rather poor workaround - it fixes Russian locale, but a locale can use almost arbitrary formatting for numbers. In particular, even proper Russian formatting &quot;(123.456.789,00) will remain broken.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>254448</commentid>
    <comment_count>7</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2010-07-21 12:20:57 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; As Darin said, String formatting needs to be fixed - see also bug 18994.
&gt; 
&gt; This is a rather poor workaround - it fixes Russian locale, but a locale can use almost arbitrary formatting for numbers. In particular, even proper Russian formatting &quot;(123.456.789,00) will remain broken.

We should document all occurences of work arounds for the string formating problems. So we can fix them all at once. Otherwise, adding all this br&apos;s on bug 18994 is also some kind of documentation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>254451</commentid>
    <comment_count>8</comment_count>
    <who name="Ilya Tikhonovsky">loislo</who>
    <bug_when>2010-07-21 12:28:11 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; As Darin said, String formatting needs to be fixed - see also bug 18994.
&gt; 
&gt; This is a rather poor workaround - it fixes Russian locale, but a locale can use almost arbitrary formatting for numbers. In particular, even proper Russian formatting &quot;(123.456.789,00) will remain broken.

According to spec %f doesn&apos;t uses thousands separator. 
It will be the problem if some locale uses something different as decimal separator.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>263031</commentid>
    <comment_count>9</comment_count>
    <who name="Ilya Tikhonovsky">loislo</who>
    <bug_when>2010-08-10 22:45:30 -0700</bug_when>
    <thetext>already landed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>263070</commentid>
    <comment_count>10</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2010-08-10 23:37:24 -0700</bug_when>
    <thetext>(In reply to comment #8)
&gt; (In reply to comment #6)
&gt; &gt; As Darin said, String formatting needs to be fixed - see also bug 18994.
&gt; &gt; 
&gt; &gt; This is a rather poor workaround - it fixes Russian locale, but a locale can use almost arbitrary formatting for numbers. In particular, even proper Russian formatting &quot;(123.456.789,00) will remain broken.
&gt; 
&gt; According to spec %f doesn&apos;t uses thousands separator. 
&gt; It will be the problem if some locale uses something different as decimal separator.

I guess this is what ap tried to mention. :-P We have many localas with this schema (points and commas in a float). This fix is a hack, that works for some locals, but many still fail, or will fail now. It&apos;s sad that there was no FIXME added in the patch. Normaly this patch shouldn&apos;t be in trunk. :-(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>263081</commentid>
    <comment_count>11</comment_count>
    <who name="Ilya Tikhonovsky">loislo</who>
    <bug_when>2010-08-11 00:11:13 -0700</bug_when>
    <thetext>yep. it should be fixed another way.

https://bugs.webkit.org/show_bug.cgi?id=43832</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>62183</attachid>
            <date>2010-07-21 08:18:19 -0700</date>
            <delta_ts>2010-08-10 22:44:37 -0700</delta_ts>
            <desc>[patch] initial version.</desc>
            <filename>patch</filename>
            <type>text/plain</type>
            <size>1182</size>
            <attacher name="Ilya Tikhonovsky">loislo</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
MWI2OWVjZC4uYjA5ZmY1OSAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvV2Vi
Q29yZS9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxNCBAQAorMjAxMC0wNy0yMSAgSWx5YSBUaWtob25v
dnNreSAgPGxvaXNsb0BjaHJvbWl1bS5vcmc+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZ
IChPT1BTISkuCisKKyAgICAgICAgV2ViSW5zcGVjdG9yOiBTZXJpYWxpemF0aW9uIHRvIEpTT04g
aW4gSW5zcGVjdG9yVmFsdWUgd29ya3MgaW5jb3JyZWN0CisgICAgICAgIGlmIGNvbW1hIGlzIGFz
c2lnbmVkIGFzIGRlY2ltYWwgc2VwYXJhdG9yLiBXaW5kb3dzIHdpdGggUnVzc2lhbiBsb2NhbGUu
C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_id="1"
          status="+"
          setter="pfeldman"
    />
          </attachment>
      

    </bug>

</bugzilla>