Re: Error in /etc/profile.d/i18n.sh

"Bruce Dubbs" ([email protected] via blfs-dev Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.beyond.devel
Message-ID <[email protected]>
On 7/18/25 10:07 AM, Randy McMurchy ([email protected] via blfs-dev Mailing List) wrote:

<snip>

> bash: /etc/profile.d/i18n.sh: line 9: syntax error near unexpected token `<'
> bash: /etc/profile.d/i18n.sh: line 9: `  export LANG=<ll>_<CC>.<charmap><@modifiers>'


That line is from the locale section of Chapter 9.

if [[ "$TERM" = linux ]]; then
   export LANG=C.UTF-8
else
   export LANG=<ll>_<CC>.<charmap><@modifiers>
fi

What is intended is to replace the items inside the angle brackets.  For instance 
<ll>_<CC> would be replaced with 'fr_FR', <charmap> would be replaced with 
'iso885915' and <@modifiers> would be replaced with '@euro'.

Note that the locale page says:
"Replace <ll> below with the two-letter code for your desired language (e.g., en) and 
<CC> with the two-letter code for the appropriate country (e.g., GB). <charmap> 
should be replaced with the canonical charmap for your chosen locale. Optional 
modifiers such as @euro may also be present."

For US users, that section is not needed at all.

   -- Bruce

-- 
http://lists.linuxfromscratch.org/sympa/info/blfs-dev
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.