Mitchell Hashimoto 0026c40062 Simplify setlocale logic to rely on libc to fail if invalid
Instead of checking if a locale is valid, let's change this logic:

  1. We first try setlocale to inherit from env vars, system default.
  2. Next, we fall back to unsetting LANG if it was set manually,
     allowing us to fall back to system defaults.
  3. We fall back to en_US.UTF-8.
2023-09-26 17:35:19 -07:00
..
2023-06-30 12:15:31 -07:00
2023-09-20 13:02:06 -07:00
2023-06-30 12:15:31 -07:00
2023-09-14 20:48:09 -07:00
2023-09-20 13:02:06 -07:00
2023-06-30 12:15:31 -07:00
2023-09-14 20:48:09 -07:00
2023-06-30 12:15:31 -07:00
2023-07-10 16:48:22 -07:00