lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r802461 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/ExtendedFieldCacheImpl.cs
Date Sat, 08 Aug 2009 21:45:03 GMT
Author: digy
Date: Sat Aug  8 21:45:03 2009
New Revision: 802461

URL: http://svn.apache.org/viewvc?rev=802461&view=rev
Log:
LUCENENET-187  Search/TestSort/TestTypedSort - Error while parsing double

Modified:
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/ExtendedFieldCacheImpl.cs

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/ExtendedFieldCacheImpl.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Search/ExtendedFieldCacheImpl.cs?rev=802461&r1=802460&r2=802461&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/ExtendedFieldCacheImpl.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Search/ExtendedFieldCacheImpl.cs Sat Aug
 8 21:45:03 2009
@@ -47,7 +47,7 @@
         {
             public virtual double ParseDouble(System.String value_Renamed)
             {
-                return System.Double.Parse(value_Renamed);
+                return System.Double.Parse(value_Renamed.Replace(".", System.Globalization.CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator));
             }
         }
 



Mime
View raw message