mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-05 13:20:11 +00:00
ParseLocale normalises the text as a POSIX name first, which leaves a BCP-47 tag unchanged except for underscores, and then parses the result, so the caller handles en-US and en_US.UTF-8 alike. C, POSIX and an empty text report no locale and leave the output tag as it was.