#11193: Locale settings in /etc/profile.d/i18n.sh and /etc/locale.conf
--------------------+-----------------------
 Reporter:  xry111  |       Owner:  renodr
     Type:  task    |      Status:  assigned
 Priority:  normal  |   Milestone:  8.4
Component:  BOOK    |     Version:  systemd
 Severity:  normal  |  Resolution:
 Keywords:          |
--------------------+-----------------------

Comment (by xry111):

 Do not export unset variables:

 {{{
 # Begin /etc/profile.d/i18n.sh

 if [ -s /etc/locale.conf ]; then
   . /etc/locale.conf
 else
   LANG=<ll>_<CC>.<charmap><@modifiers>
 fi

 for var in LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY \
   LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE \
   LC_MEASUREMENT LC_IDENTIFICATION LC_ALL; do
     if eval "[ ! -z \${${var}+x} ]"; then
       export $var
     fi
   done

 unset var

 # End /etc/profile.d/i18n.sh
 }}}

--
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/11193#comment:4>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to