Subject: | wrong order of checks of locale variables |
To determine the current locale, this module checks LC_LEGAL first and
falls back to LC_ALL. This is wrong.
It should check LC_ALL first, then LC_LEGAL, then LANG (LC_ALL is a
global override, while LANG is a fallback value for everything else).