Fix parse method to add IFormatProvider arg (#3697)
authorjay-h-park <39765223+jay-h-park@users.noreply.github.com>
Tue, 2 Nov 2021 01:57:44 +0000 (10:57 +0900)
committerGitHub <noreply@github.com>
Tue, 2 Nov 2021 01:57:44 +0000 (10:57 +0900)
Co-authored-by: jaehong Park <jay.ho.park@samsung.com>
src/Tizen.Nlp/Tizen.Nlp/NaturalLanguageProcess.cs

index dc90ce4..98c9560 100755 (executable)
@@ -17,6 +17,7 @@
 using System;
 using System.Collections.Generic;
 using System.Dynamic;
+using System.Globalization;
 using System.Linq;
 using System.Runtime.CompilerServices;
 using System.Threading.Tasks;
@@ -122,7 +123,7 @@ namespace Tizen.Nlp
                 result.Add("token", (string[])msg.GetItem("return_token"));
 
             if (msg.Contains("request_id"))
-                e.RequestId = requestid = int.Parse((string)msg.GetItem("request_id"));
+                e.RequestId = requestid = int.Parse((string)msg.GetItem("request_id"), NumberStyles.Integer, CultureInfo.InvariantCulture);
             else
                 return;