diff options
author | Bruno Haible <bruno@clisp.org> | 2019-05-20 21:25:01 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2019-05-20 21:25:01 +0200 |
commit | 661c55d6c287e1e6122e0ec03668ec859b6d806a (patch) | |
tree | 0874da1bf36711800e2069afccc9aca779e3e8a7 /build-aux/config.sub | |
parent | bf5935a7c870a4aef806cc5aa41f938b2929fdcb (diff) | |
download | gnulib-661c55d6c287e1e6122e0ec03668ec859b6d806a.tar.gz |
setlocale: Improve fallback on macOS.
* lib/setlocale.c (search): Optimize away a redundant strcmp()
invocation.
(locales_with_principal_territory): New array.
(langcmp, get_main_locale_with_same_language): New functions.
(locales_with_principal_language): New array.
(terrcmp, get_main_locale_with_same_territory): New functions.
(rpl_setlocale): When setlocale_single failed, try again with a locale
that is more likely to exist. Don't warn if the environment variable
SETLOCALE_VERBOSE is not set.
Diffstat (limited to 'build-aux/config.sub')
0 files changed, 0 insertions, 0 deletions