On 2018-09-26 16:52 -0500, Bruce Dubbs via blfs-dev wrote:
> On 09/26/2018 09:19 AM, Xi Ruoyao via blfs-dev wrote:
> > In LFS systemd book section 7.7 we create /etc/locale.conf as
> > locale
> > configuation file.  But, in BLFS systemd book Chapter 3 section
> > "The
> > Bash Startup Files" we create /etc/profile.d/i18n.sh which sets up
> > the
> > locale for bash.  Their settings may be inconsistent and confuse
> > the
> > users (I was confused several times).
> > 
> > We should add a note about this issue in LFS or BLFS book.  Now I
> > use
> > an i18n.sh reading /etc/locale.conf (copied from Arch :) to make
> > the
> > settings consistent.
> 
> I suppose that we could change /etc/profile.d/i18n.sh to:
> 
> if [ -f /etc/locale.conf ]; then
>    source /etc/locale.conf
> else
>    export LANG=<ll>_<CC>.<charmap><@modifiers>
> fi
> 
> We may need to update  ~/.profile and ~/.bashrc also.
> 
> I've used 'source' above to make it clear, but for ~/.profile and 
> i18n.sh is should probably be the dot (.) operator.
> 
>    -- Bruce

Created BLFS #11193.
-- 
Xi Ruoyao <[email protected]>
School of Aerospace Science and Technology, Xidian University

-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to