El Domingo, 7 de Mayo de 2006 13:46, Jeremy Byron escribió:

> common/func_validate_configs.sh:245:
> - [[ ! "`locale -a | grep -c ${!config_param}`" > 0 ]] &&
> + [[ `LC_ALL=${!config_param} locale charmap 2>/dev/null` = \
> +    "ANSI_X3.4-1968" ]] &&
>
> Essentially, anything invalid generates warnings that get redirected to
> /dev/null and results in the return value "ANSI_X3.4-1968".

The issue is, is all that check actually required?

LANG and LC_ALL are used only to create /etc/profile, and in common/config 
they are set to use the host default values. Plus, there is no big harm in 
setting a nonexistent locale, except some warnings on console and defaulting 
to C when booting the new system.

Apart, a user can be building from a host with only a few set of locales 
installed, but might want to use a different locale (for example, an UTF-8 
based one) on the new LFS system (where jhalfs will install all locales by 
default).

Thus, I will go to remove that "locale -a" check.

-- 
Manuel Canales Esparcia
Usuario de LFS nº2886:       http://www.linuxfromscratch.org
LFS en castellano: http://www.escomposlinux.org/lfs-es http://www.lfs-es.com
TLDP-ES:                           http://es.tldp.org
-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to