You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SR-10525 Decimal(string:locale:) different results macOS vs Linux
Issue Description:
Decimal init?(string: String, locale: Locale? = default) doesn't return nil when the string format doesn't match the locale. Such as the comma separator being different. It just seems to parse the longest possible prefix.
I note that NSDecimalNumber init(string:locale🙂 has the same behaviour, although that initialiser isn't failable.
Environment
Xcode Version 11.0 beta 4 (11M374r), Apple Swift version 5.1 (swiftlang-1100.0.257.2 clang-1100.0.31.3)
Additional Detail from JIRA
md5: 20e3c7252ef6c20876ade0ae4006c86a
relates to:
Issue Description:
Decimal init?(string: String, locale: Locale? = default) doesn't return nil when the string format doesn't match the locale. Such as the comma separator being different. It just seems to parse the longest possible prefix.
I note that NSDecimalNumber init(string:locale🙂 has the same behaviour, although that initialiser isn't failable.
in playground prints:
The text was updated successfully, but these errors were encountered: