You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2019/08/07 22:26:12 UTC

[lucenenet] 15/42: BUG: Lucene.Net.Index.CheckIndex - Fixed issue with converting int to string using ambient context on VersionInfo comparison

This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit 78daef78c64e3be095b5d02b7a5764d4e9208e93
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Wed Jul 31 18:29:31 2019 +0700

    BUG: Lucene.Net.Index.CheckIndex - Fixed issue with converting int to string using ambient context on VersionInfo comparison
---
 src/Lucene.Net/Index/CheckIndex.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Lucene.Net/Index/CheckIndex.cs b/src/Lucene.Net/Index/CheckIndex.cs
index 67ad0ec..a562df6 100644
--- a/src/Lucene.Net/Index/CheckIndex.cs
+++ b/src/Lucene.Net/Index/CheckIndex.cs
@@ -543,7 +543,7 @@ namespace Lucene.Net.Index
             }
 
             // find the oldest and newest segment versions
-            string oldest = Convert.ToString(int.MaxValue), newest = Convert.ToString(int.MinValue);
+            string oldest = Convert.ToString(int.MaxValue, CultureInfo.InvariantCulture), newest = Convert.ToString(int.MinValue, CultureInfo.InvariantCulture);
             string oldSegs = null;
             bool foundNonNullVersion = false;
             IComparer<string> versionComparer = StringHelper.VersionComparer;