diff --git a/HLFS/master.sh b/HLFS/master.sh index fef3dce..787a79e 100755 --- a/HLFS/master.sh +++ b/HLFS/master.sh @@ -515,6 +515,10 @@ EOF echo -e "\t@cp -f $CONFIG \$(MOUNT_PT)/sources/kernel-config" >> $MKFILE.tmp fi + case "${this_script}" in + *profile* ) wrt_export_lang2 ;; # For /etc/profile we need to set LANG envar. + esac + # Check if we have a real /etc/fstab file if [[ `_IS_ $this_script fstab` ]] && [[ -n "$FSTAB" ]] ; then wrt_copy_fstab "$this_script" @@ -572,6 +576,8 @@ SRC= /sources MOUNT_PT= $BUILDDIR PAGE= $PAGE TIMEZONE= $TIMEZONE +LC_ALL= $LC_ALL +LANG= $LANG include makefile-functions diff --git a/common/common-functions b/common/common-functions index 0742953..e761fca 100644 --- a/common/common-functions +++ b/common/common-functions @@ -453,6 +453,14 @@ wrt_export_pagesize() { # #----------------------------------# wrt_export_lang() { # #----------------------------------# + echo -e '\t@echo "export LANG=$(LANG)" > envars' >> $MKFILE.tmp +} + + +#----------------------------------# +wrt_export_lang2() { # +#----------------------------------# + echo -e '\t@echo "export LC_ALL=$(LC_ALL)" > envars' >> $MKFILE.tmp echo -e '\t@echo "export LANG=$(LANG)" >> envars' >> $MKFILE.tmp }