On 11/11/06, alberto hernando <[EMAIL PROTECTED]> wrote:

I've read the article above. I think that my locales aren't working well.
First of all, I have this:


[EMAIL PROTECTED]:~# locale
LANG=es_ES.UTF-8
LC_CTYPE="es_ES.UTF-8"
LC_NUMERIC="es_ES.UTF-8"
LC_TIME="es_ES.UTF-8"
LC_COLLATE="es_ES.UTF-8"
LC_MONETARY="es_ES.UTF-8"
LC_MESSAGES="es_ES.UTF-8"
LC_PAPER="es_ES.UTF-8"
LC_NAME="es_ES.UTF-8"
LC_ADDRESS="es_ES.UTF-8"
LC_TELEPHONE="es_ES.UTF-8"
LC_MEASUREMENT="es_ES.UTF-8"
LC_IDENTIFICATION="es_ES.UTF-8"
LC_ALL=es_ES.UTF-8

This looks ok. I thought it was working because I could type and see
Japanese characters. But there are some things weird. For example, according
to the article, wc is a useful tool. In kde, I have this:

You don't normally need to set LC_ALL. Just LANG is usually enough.

bash-3.1$ echo -n é | wc -c
2
bash-3.1$ echo -n é | wc -m
1

And it's ok. But in the console,
bash-3.1$ echo -n é | wc -c
 1
 bash-3.1$ echo -n é | wc -m
 0

Some thing isn't working here. Notice that the behaviour in console and X is
different. Also, in X I type "á" and I see it. In console, I type "á" and I
see it when I type the next character. For example, I type: áéíóú
I see: áéíó

Don't use the console in UTF-8. It just doesn't work. Look back
through the lfs-dev archives for Alexander Patrakov posting about
patches for the kernel w/ UTF-8. What we have in the book only
implements part of a solution and was rejected upstream.

If you want to use UTF-8 on the command line, you need a true UTF-8
capable terminal emulator. This include xterm w/ luit or something
like gnome-terminal.

And more things: in console I can't see well the non-ascii characters in
vfat (I mount it with codepage=850 and utf-8). But it looks good in X. The
inside, however, is messy in both X and console.

I don't understand how fat handling works with the codepage and
whatnot. I don't know if utf8 really works on fat or not. Maybe
Alexander will pipe up.

Good luck.

--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to