mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-25 07:08:13 -07:00
python-utils-r1.eclass: python_export_utf8_locale: do not spew warnings when locale is not available
If the `locale` isn't available, there's nothing this func can do, so just return quickly and assume the system is sane.
This commit is contained in:
@@ -1117,6 +1117,9 @@ python_fix_shebang() {
|
||||
python_export_utf8_locale() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
# If the locale program isn't available, just return.
|
||||
type locale >/dev/null || return 0
|
||||
|
||||
if [[ $(locale charmap) != UTF-8 ]]; then
|
||||
if [[ -n ${LC_ALL} ]]; then
|
||||
ewarn "LC_ALL is set to a locale with a charmap other than UTF-8."
|
||||
|
||||
Reference in New Issue
Block a user