]> arthur.barton.de Git - ax-zsh.git/commit
12_locale: Detect and revert auto-correction of LC_* variables
authorAlexander Barton <alex@barton.de>
Sun, 12 Mar 2017 16:08:05 +0000 (17:08 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 12 Mar 2017 16:08:37 +0000 (17:08 +0100)
commit3f50e53b7460f4a779a30b1f21110ccab281d050
tree386f7bda61c851774ed3cbf622d054740b0e6d31
parent7c30c44cfe91f64624352da58a330623fa0af3bc
12_locale: Detect and revert auto-correction of LC_* variables

Some systems (tested with macOS 10.12) auto-correct the output of LC_xxx
variables when using the locale(1) tool and the locale isn't supported:

  $ LANG=de locale
  LC_MESSAGES="de"

vs.

  $ LANG=de locale
  LC_MESSAGES="C"

So try to detect and revert this.
core/12_locale/12_locale.zprofile