Repository: lucenenet
Updated Branches:
  refs/heads/master 2d5108ba0 -> c3f60b29f


BUG: Lucene.Net.Analysis.Kuromoji: Fixed problem with loading hexadecimal 
numbers from the dictionary source files


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/5c32d9e1
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/5c32d9e1
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/5c32d9e1

Branch: refs/heads/master
Commit: 5c32d9e1d8526669b296ce8cbf8616fec93086ec
Parents: 2d5108b
Author: Shad Storhaug <[email protected]>
Authored: Mon Jul 24 06:21:14 2017 +0700
Committer: Shad Storhaug <[email protected]>
Committed: Mon Jul 24 06:21:14 2017 +0700

----------------------------------------------------------------------
 .../Tools/UnknownDictionaryBuilder.cs                          | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/5c32d9e1/src/Lucene.Net.Analysis.Kuromoji/Tools/UnknownDictionaryBuilder.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Analysis.Kuromoji/Tools/UnknownDictionaryBuilder.cs 
b/src/Lucene.Net.Analysis.Kuromoji/Tools/UnknownDictionaryBuilder.cs
index feff4fe..7f10b9b 100644
--- a/src/Lucene.Net.Analysis.Kuromoji/Tools/UnknownDictionaryBuilder.cs
+++ b/src/Lucene.Net.Analysis.Kuromoji/Tools/UnknownDictionaryBuilder.cs
@@ -115,14 +115,14 @@ namespace Lucene.Net.Analysis.Ja.Util
 
                         if (!values[0].Contains(".."))
                         {
-                            int cp = Convert.ToInt32(values[0]);
+                            int cp = Convert.ToInt32(values[0], 16);
                             dictionary.PutCharacterCategory(cp, values[1]);
                         }
                         else
                         {
                             string[] codePoints = Regex.Split(values[0], 
"\\.\\.");
-                            int cpFrom = Convert.ToInt32(codePoints[0]);
-                            int cpTo = Convert.ToInt32(codePoints[1]);
+                            int cpFrom = Convert.ToInt32(codePoints[0], 16);
+                            int cpTo = Convert.ToInt32(codePoints[1], 16);
 
                             for (int i = cpFrom; i <= cpTo; i++)
                             {

Reply via email to