
Linux From Scratch - Version 7.0
218
Once the proper locale settings have been determined, create the /etc/profile file:
cat > /etc/profile << "EOF"
# Begin /etc/profile
export LANG=<ll>_<CC>.<charmap><@modifiers>
# End /etc/profile
EOF
The “C” (default) and “en_US” (the recommended one for United States English users) locales are different. “C”
uses the US-ASCII 7-bit character set, and treats bytes with the high bit set as invalid characters. That's why, e.g., the
ls command substitutes them with question marks in that locale. Also, an attempt to send mail with such characters
from Mutt or Pine results in non-RFC-conforming messages being sent (the charset in the outgoing mail is indicated
as “unknown 8-bit”). So you can use the “C” locale only if you are sure that you will never need 8-bit characters.
UTF-8 based locales are not supported well by many programs. Work is in progress to document and, if possible, fix
such problems, see http://www.linuxfromscratch.org/blfs/view/svn/introduction/locale-issues.html.
7.14. Creating the /etc/inputrc File
The inputrc file handles keyboard mapping for specific situations. This file is the startup file used by Readline —
the input-related library — used by Bash and most other shells.
Most people do not need user-specific keyboard mappings so the command below creates a global /etc/inputrc
used by everyone who logs in. If you later decide you need to override the defaults on a per-user basis, you can create
a .inputrc file in the user's home directory with the modified mappings.
For more information on how to edit the inputrc file, see info bash under the Readline Init File section. info
readline is also a good source of information.
Comentarios a estos manuales