On 11/12/06, Ken Moffat <[EMAIL PROTECTED]> wrote:
On Sun, Nov 12, 2006 at 09:45:23AM +0100, Alberto Hernando wrote:
>
> Thanks for your explanations. I'll check if things go as you say should go.
> Only one question: how do you set utf-8 for X and, say, iso-8859-15 for
> console?
I was going to say that you don't wnat to do that, but on looking a
bit more deeply I can see that for many common West European
languages that will work nicely. The big thing you need to watch
out for is probably the euro symbol (€) - the iso-8859-15 glyph for
that is now the funny-looking 'currency symbol' in UTF-8.
So, for a desktop system try 8859-15 in your .bash_profile so that
a login at the console will use it, and UTF-8 everywhere else
including the LFS sysconfig and /etc/profile.
How you partition the configuration is up to you. Ken's suggestion
would work. One other thought is this:
if [ "$TERM" = linux ]; then
LANG=es_ES.ISO-8859-15
else
LANG=es_ES.UTF-8
fi
For xterms with luit, I think the settings shown in the book should do
the right thing if you put them in the app-defaults or in your
.Xresources:
*VT100*locale: true
Then I think xterm will always set up your terminal appropriately for
the current locale settings.
--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page