<?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>4975</bug_id>
          
          <creation_ts>2005-09-13 13:36:37 -0700</creation_ts>
          <short_desc>For default Russian date format, results of toLocalizedString cannot be parsed, resulting in a regression test failure</short_desc>
          <delta_ts>2007-01-06 12:42:47 -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>JavaScriptCore</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ian</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>19598</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-09-13 13:36:37 -0700</bug_when>
    <thetext>If the system primary language is Russian, Date.parse() fails on results of toLocalizedString(), making 
ecma_3/Date/15.9.5.6.js be reported as a regression.

Failure messages were:
--&gt; (Date.parse(now.toLocaleDateString()) - (midnight(now)).valueOf()) == 0 = false FAILED! expected: 
true
--&gt; Date.parse(Thu Jan 01 1970 03:00:00 GMT+0300).toLocaleDateString()) = NaN FAILED! expected: 
-10800000
--&gt; Date.parse(Thu Jan 01 1970 06:00:00 GMT+0300).toLocaleDateString()) = NaN FAILED! expected: 
-10800000
--&gt; Date.parse(Mon Jan 01 1900 03:00:00 GMT+0300).toLocaleDateString()) = NaN FAILED! expected: 
-2208999600000
--&gt; Date.parse(Mon Jan 01 1900 00:00:00 GMT+0300).toLocaleDateString()) = NaN FAILED! expected: 
-2208999600000
--&gt; Date.parse(Sat Jan 01 2000 03:00:00 GMT+0300).toLocaleDateString()) = NaN FAILED! expected: 
946674000000
--&gt; Date.parse(Sat Jan 01 2000 00:00:00 GMT+0300).toLocaleDateString()) = NaN FAILED! expected: 
946674000000
--&gt; Date.parse(Tue Feb 29 2000 03:00:00 GMT+0300).toLocaleDateString()) = NaN FAILED! expected: 
951771600000
--&gt; Date.parse(Tue Feb 29 2000 02:59:59 GMT+0300).toLocaleDateString()) = NaN FAILED! expected: 
951771600000
--&gt; Date.parse(Tue Feb 29 2000 00:00:00 GMT+0300).toLocaleDateString()) = NaN FAILED! expected: 
951771600000
--&gt; Date.parse(Sat Jan 01 2005 03:00:00 GMT+0300).toLocaleDateString()) = NaN FAILED! expected: 
1104526800000
--&gt; Date.parse(Sat Jan 01 2005 02:59:59 GMT+0300).toLocaleDateString()) = NaN FAILED! expected: 
1104526800000
--&gt; Date.parse(Sat Jan 01 2005 00:00:00 GMT+0300).toLocaleDateString()) = NaN FAILED! expected: 
1104526800000</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19599</commentid>
    <comment_count>1</comment_count>
      <attachid>3889</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-09-13 13:39:35 -0700</bug_when>
    <thetext>Created attachment 3889
test case

Steps to reproduce with this test case:

1. Set Region in International control panel (Formats tab) to Russia
2. Open the document in Safari (I was running current ToT; same with 412.2)

Expected results: two alerts, first with a Russian-lnaguage date, second with a
number
Actual results: two alerts, first with a Russian-lnaguage date, second with NaN</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19600</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-09-13 13:46:35 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; If the system primary language is Russian

Correction: this probably has nothing to do with primary language, just the regional format.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21262</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-10-03 03:07:57 -0700</bug_when>
    <thetext>The current source from Mozilla now says:

----------------------------------------------------------------
    Note: This test isn&apos;t supposed to work with a non-English locale per spec.
----------------------------------------------------------------

With WebKit, it also won&apos;t work if the user changes the date format International Preferences. Maybe this 
test just needs to be removed or disabled?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21272</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-10-03 12:14:35 -0700</bug_when>
    <thetext>Here&apos;s where Mozilla people have decided to keep this test: &lt;https://bugzilla.mozilla.org/show_bug.cgi?
id=282339&gt;.

Anyway, having a test for something that is guaranteed to fail for most people in the world is strange.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29347</commentid>
    <comment_count>5</comment_count>
    <who name="Joost de Valk (AlthA)">joost</who>
    <bug_when>2006-01-22 04:35:13 -0800</bug_when>
    <thetext>Adding Regression keyword.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29371</commentid>
    <comment_count>6</comment_count>
    <who name="Joost de Valk (AlthA)">joost</who>
    <bug_when>2006-01-22 04:42:25 -0800</bug_when>
    <thetext>Upping to P1 because this is a regression.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29433</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-01-22 05:44:09 -0800</bug_when>
    <thetext>In fact, I have no reason to believe it is a regression, although it is reported as such by the tests. Moving the priority/severity down; removing the keyword.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36670</commentid>
    <comment_count>8</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2007-01-06 12:42:47 -0800</bug_when>
    <thetext>I think we should probably disable this test unless we have some way to set the locale in the test.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>3889</attachid>
            <date>2005-09-13 13:39:35 -0700</date>
            <delta_ts>2005-09-13 13:39:35 -0700</delta_ts>
            <desc>test case</desc>
            <filename>parse.html</filename>
            <type>text/html</type>
            <size>138</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">PGh0bWw+Cjxib2R5IG9uTG9hZD0namF2YXNjcmlwdDphbGVydCgobmV3IERhdGUpLnRvTG9jYWxl
RGF0ZVN0cmluZygpKTthbGVydChEYXRlLnBhcnNlKChuZXcgRGF0ZSkudG9Mb2NhbGVEYXRlU3Ry
aW5nKCkpKScKPC9ib2R5Pgo8L2h0bWw+
</data>

          </attachment>
      

    </bug>

</bugzilla>