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
In Apple platform, this call, when `locale == nil` (the default) result in "." (period) used, regardless of what the system locale is. However, it looks like in non-Apple platform, it uses the system's default, which could be "." or "," depending on what the system locale is. I'm told non-Apple platform must match Apple platform, so this is a bug.
Environment
I don't have any non-Apple platform to verify this. I only look at the source at https://github.com/apple/swift-corelibs-foundation/blob/main/Sources/Foundation/Decimal.swift#L264
Additional Detail from JIRA
md5: 41f970efd4c0807c3291349d817f291b
Issue Description:
In Apple platform, this call, when `locale == nil` (the default) result in "." (period) used, regardless of what the system locale is. However, it looks like in non-Apple platform, it uses the system's default, which could be "." or "," depending on what the system locale is. I'm told non-Apple platform must match Apple platform, so this is a bug.
See https://forums.swift.org/t/why-unable-to-debug-step-into-decimal-string/53938
and https://forums.swift.org/t/how-to-re-create-a-decimal-with-a-string-originally-from-decimal-description-must-be-locale-independent/53871/10
The text was updated successfully, but these errors were encountered: