File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Clojure/Clojure.Source/clojure Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -8173,7 +8173,7 @@ clojure.lang.IKVReduce
81738173 [^String s] ; ;; ^Long -- no equivalent since this can return nil -- at least until we can return Nullable<long>
81748174 (if (string? s)
81758175 (try
8176- (Int64/Parse s) ; ;; Long/Parse
8176+ (Int64/Parse s ( .NumberFormat System.Globalization.CultureInfo/InvariantCulture) ) ; ;; Long/Parse
81778177 (catch FormatException _ nil )(catch OverflowException _ nil )) ; ;; NumberFormatException -- and added other cases
81788178 (throw (ArgumentException. (parsing-err s))))) ; ;; IllegalArgumentException
81798179
@@ -8186,9 +8186,9 @@ clojure.lang.IKVReduce
81868186 [^String s] ; ;; ^Double -- no equivalent since this can return nil -- at least until we can return Nullable<double>
81878187 (if (string? s)
81888188 (try
8189- (Double/Parse s) ; ;; Double/valueOf
8190- (catch FormatException _ nil )(catch OverflowException _ nil )) ; ;; NumberFormatException -- and added other cases
8191- (throw (ArgumentException. (parsing-err s))))) ; ;; IllegalArgumentException
8189+ (Double/Parse s ( .NumberFormat System.Globalization.CultureInfo/InvariantCulture)) ; ;; Double/valueOf, added InvariantCulture
8190+ (catch FormatException _ nil )(catch OverflowException _ nil )) ; ;; NumberFormatException -- and added other cases
8191+ (throw (ArgumentException. (parsing-err s))))) ; ;; IllegalArgumentException
81928192
81938193(defn parse-uuid
81948194 {:doc " Parse a string representing a UUID and return a java.util.UUID instance,
You can’t perform that action at this time.
0 commit comments