POSIX locale precedence is LC_ALL > LC_MESSAGES > LANG. resolve_auto previously only checked LC_MESSAGES and LANG; add LC_ALL as the highest-priority env var, skipping it when empty. Extend the resolve_auto test (env-mutation serialized via the existing Mutex). cc