Describe the bug
NumberFormatter.number(from:) is nil on Linux, but works fine on macOS.
Steps To Reproduce
Steps to reproduce the behavior:
create a string with a number value (e.g. "1,500.50")
create NumberFormatter with style set to currency and currency symbol set to empty.
use NumberFormatter.number(from:) and try to use the unwrapped value
Expected behavior
I expect to be able to get a string parsed to a value, like I can on macOS, that can be obtained via the doubleValue property.
Environment (please fill out the following information)
Fedora 36 and Devuan Beowulf (equivalent to Ubuntu 18.04)
Swift 5.6 toolchain.
Locale: en_US.UTF-8
Describe the bug NumberFormatter.number(from:) is nil on Linux, but works fine on macOS.
Steps To Reproduce Steps to reproduce the behavior:
Expected behavior I expect to be able to get a string parsed to a value, like I can on macOS, that can be obtained via the doubleValue property.
Environment (please fill out the following information) Fedora 36 and Devuan Beowulf (equivalent to Ubuntu 18.04) Swift 5.6 toolchain. Locale: en_US.UTF-8