Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Intl LC_NUMERIC use fallback if locale en_US not installed #11571
Problem: On a few systems, only local locales are installed / enabled. Therefore, setting LC_NUMERIC to "en_US.UTF-8" silently fails and numerics are juggled in local manner (1,0 vs 1.0). This makes the NumberFormatter fail on those numbers.
The locale C/C.UTF-8/POSIX is present on nearly all systems, so we add those to the setlocale fallbacks.