diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2018-03-04 11:29:04 +0100 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2018-03-04 11:59:03 +0100 |
commit | c2a9358b6e7d1432856b05bddcab66723f9ea847 (patch) | |
tree | 0a49cdb89569e3ee16c003747b80b5bc42535b40 /package/php/0009-ext-xml-expat_compat.h-add-missing-php.h-include.patch | |
parent | 9f8c7766e43d3a4e655d8073450e5e60abcdddd7 (diff) | |
download | buildroot-c2a9358b6e7d1432856b05bddcab66723f9ea847.tar.gz buildroot-c2a9358b6e7d1432856b05bddcab66723f9ea847.zip |
core: find a host UTF-8 locale
Some packages really want to use an UTF-8 locale, or they break.
However, there is no guarantee that any given locale is available on a
system. For example,, while most mainstream distros (Debian and
derivatives, Fedora...) do have the generic, language-agnostic C.UTF-8
locale, Gentoo does not provide it.
So, find the first UTF-8 locale available on the system, and take any
that is available. We however do favour using the user-set current
locale, then using the language-agnostic C.UTF-8, and eventually any
random UTF-8 locale.
Note: we only need to enforce LC_ALL, because setting it implies
everything else:
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html#tag_08_02
"""
1. If the LC_ALL environment variable is defined and is not null,
the value of LC_ALL shall be used.
"""
[Peter: use same regexp as in dependencies.sh]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/php/0009-ext-xml-expat_compat.h-add-missing-php.h-include.patch')
0 files changed, 0 insertions, 0 deletions