I am having some interesting results when I cross-compile using 6.0.2 SDK to Ubuntu Linux vs running app on my local Mac. Detecting locale seems to be off when using Locale.current
. My machine's locale is set to American English but when loading printing the locale it always defaults to en_001 (which I believe is world English).
Has anyone experienced the same issue?
Ubuntu Linux locale is set to en_US, here's the output from terminal.
production:~$: locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
print(Locale.current) //`Locale en_001 (fixed en_001) on Linux`
print(Locale.current) //`Locale en_US on macOS`