Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 112335 - UTF-8 and "pure" console, becoming mad Spanish users
Summary: UTF-8 and "pure" console, becoming mad Spanish users
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-12 13:07 UTC by Rafael Fernández López
Modified: 2012-01-28 12:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Fernández López 2005-11-12 13:07:32 UTC
As you know, spanish users we do use characters like "
Comment 1 Rafael Fernández López 2005-11-12 13:07:32 UTC
As you know, spanish users we do use characters like "ñ", "á", "ó", "é", "í",
"ú". Well, when using the "pure" console (Ctrl+Alt+F1, from the graphical
interface), and we ask for a simple "ls" in a directory that we had a file like
"Río.jpg" it is showed CORRECTLY, al characters are showed the right way.

It is too different when we are talking about typing. I can type with no
problems "ñ" and "" symbols. But I can't type "á", "é", "í", "ó", "ú".

In X11 (KDE and Gnome too) there are no problems with any character, all them
are showed and can be typed correctly.

==> Here is my "/etc/env.d/02locale" file:

LC_ALL="es_ES.UTF-8"
LANGUAGE="es_ES.UTF-8"
LANG="es_ES.UTF-8"

==> Here is "/etc/conf.d/keymaps" file:

# /etc/conf.d/keymaps
# $Header: /var/cvsroot/gentoo-src/rc-scripts/etc/conf.d/keymaps,v 1.1.4.1
2005/02/19 02:13:53 vapier Exp $

# Use KEYMAP to specify the default console keymap.  There is a complete tree
# of keymaps in /usr/share/keymaps to choose from.

#KEYMAP="es euro2"
KEYMAP="-u es euro2"

# Should we first load the 'windowkeys' console keymap?  Most x86 users will
# say "yes" here.  Note that non-x86 users should leave it as "no".

SET_WINDOWKEYS="yes"


# The maps to load for extended keyboards.  Most users will leave this as is.

#EXTENDED_KEYMAPS=""
#EXTENDED_KEYMAPS="backspace keypad euro"


# Tell dumpkeys(1) to interpret character action codes to be 
# from the specified character set.
# This only matters if you set UNICODE="yes" in /etc/rc.conf.
# For a list of valid sets, run `dumpkeys --help`

DUMPKEYS_CHARSET="iso-8859-15"

==> Here is my "/etc/conf.d/consolefont" file:

# /etc/conf.d/consolefont
# $Header: /var/cvsroot/gentoo-src/rc-scripts/etc/conf.d/Attic/consolefont,v
1.1.2.2 2005/05/14 20:44:41 vapier Exp $

# CONSOLEFONT specifies the default font that you'd like Linux to use on the
# console.  You can find a good selection of fonts in /usr/share/consolefonts;
# you shouldn't specify the trailing ".psf.gz", just the font name below.
# To use the default console font, comment out the CONSOLEFONT setting below.
# This setting is used by the /etc/init.d/consolefont script (NOTE: if you do
# not want to use it, run "rc-update del consolefont" as root).

CONSOLEFONT="lat9w-16"

# CONSOLETRANSLATION is the charset map file to use.  Leave commented to use
# the default one.  Have a look in /usr/share/consoletrans for a selection of
# map files you can use.

CONSOLETRANSLATION="8859-15_to_uni"


This is my configuration at this moment, but I've tried with all kind of
combinations and so on... and I've posted in Gentoo Forums a thread where all
spanish Gentoo users are having the same trouble.

Here is the link: http://forums.gentoo.org/viewtopic-t-400604.html. (This thread
is in spanish, because it was written on Spanish forum).

Thanks,
Rafael Fernández López.
Comment 2 Alexander Simonov 2005-11-14 06:28:54 UTC
(In reply to comment #0)
> 
> CONSOLEFONT="lat9w-16"
> 
> CONSOLETRANSLATION="8859-15_to_uni"
> 
> 
> This is my configuration at this moment, but I've tried with all kind of
> combinations and so on... and I've posted in Gentoo Forums a thread where all
> spanish Gentoo users are having the same trouble.
> 
can you remove CONSOLETRANSLATION="8859-15_to_uni" string and try w/o?

lat9w-16 - it's include spanich letters?
Comment 3 Rafael Fernández López 2005-11-14 07:19:26 UTC
Still same problem with CONSOLETRANSLATION commented.

[*] lat9w-16 include spanish letters because with "/etc/env.d/02locale" settings as:

LC_ALL="es_ES@euro"
LANGUAGE="es_ES@euro"
LANG="es_ES@euro"

There are no problems (but it is not UTF-8, that is what I want).

Thanks.

(In reply to comment #1)
> (In reply to comment #0)
> > 
> > CONSOLEFONT="lat9w-16"
> > 
> > CONSOLETRANSLATION="8859-15_to_uni"
> > 
> > 
> > This is my configuration at this moment, but I've tried with all kind of
> > combinations and so on... and I've posted in Gentoo Forums a thread where all
> > spanish Gentoo users are having the same trouble.
> > 
> can you remove CONSOLETRANSLATION="8859-15_to_uni" string and try w/o?
> 
> lat9w-16 - it's include spanich letters?
> 

Comment 4 Alexander Simonov 2005-11-15 01:13:35 UTC
> LC_ALL="es_ES@euro"
> LANGUAGE="es_ES@euro"
> LANG="es_ES@euro"
can you try set LANG and LANGUAGE to "es_ES.UTF-8" and unset LC_ALL ?
Comment 5 Rafael Fernández López 2005-11-16 13:55:31 UTC
(In reply to comment #3)
> > LC_ALL="es_ES@euro"
> > LANGUAGE="es_ES@euro"
> > LANG="es_ES@euro"
> can you try set LANG and LANGUAGE to "es_ES.UTF-8" and unset LC_ALL ?
> 

Same thing, "
Comment 6 Rafael Fernández López 2005-11-16 13:55:31 UTC
(In reply to comment #3)
> > LC_ALL="es_ES@euro"
> > LANGUAGE="es_ES@euro"
> > LANG="es_ES@euro"
> can you try set LANG and LANGUAGE to "es_ES.UTF-8" and unset LC_ALL ?
> 

Same thing, "" and "ñ" can be typed correctly. All characters are showed
correctly but I am not able to type "á", "é", "í", "ó" or "ú".

Thanks
Comment 7 Alexander Simonov 2005-11-17 05:56:34 UTC
(In reply to comment #4)
> Same thing, "€" and "
Comment 8 Alexander Simonov 2005-11-17 05:56:34 UTC
(In reply to comment #4)
> Same thing, "€" and "ñ" can be typed correctly. All characters are showed
> correctly but I am not able to type "á", "é", "í", "ó" or "ú".
> 
> Thanks
I think it's problem only of console fonts.
For more information please read 
/usr/share/consolefonts/README.lat9

Can you try terminus fonts?
if you not please trying.
Comment 9 Rafael Fernández López 2005-11-17 12:13:37 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > Same thing, "€" and "
Comment 10 Rafael Fernández López 2005-11-17 12:13:37 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > Same thing, "€" and "ñ" can be typed correctly. All characters are showed
> > correctly but I am not able to type "á", "é", "í", "ó" or "ú".
> > 
> > Thanks
> I think it's problem only of console fonts.
> For more information please read 
> /usr/share/consolefonts/README.lat9
> 
> Can you try terminus fonts?
> if you not please trying.


Terminus can't show even "" or "ñ", and of course, cannot show "á", "é", "í"...
nor write them.

I know that is not a consolefont issue... because if I change my locales to
ISO-8859-15 (where lat9w has support as for utf-8) works perfectly.

I've read that maybe is a kernel issue and I've seen a website that has a patch
for resolving this issue.

You can check this issue too:
http://forums.gentoo.org/viewtopic-t-221588-highlight-utf8+spanish.html (this
one is in english).

On that topic some solutions are told, but no one do really works. The only one
(and maybe is the right solution) is to patch the kernel.

This is the web site where the patch is supposed to be and work fine:
http://chris.heathens.co.nz/linux/utf8.html 

Thank you
Comment 11 Alexander Simonov 2005-11-17 12:27:43 UTC
> I know that is not a consolefont issue... because if I change my locales to
> ISO-8859-15 (where lat9w has support as for utf-8) works perfectly.
> 
> I've read that maybe is a kernel issue and I've seen a website that has a 
patch
> for resolving this issue.
> 
> You can check this issue too:
> http://forums.gentoo.org/viewtopic-t-221588-highlight-utf8+spanish.html (this
> one is in english).
> 
> On that topic some solutions are told, but no one do really works. The only 
one
> (and maybe is the right solution) is to patch the kernel.
> 
> This is the web site where the patch is supposed to be and work fine:
> http://chris.heathens.co.nz/linux/utf8.html 
> 
> Thank you

ok, i trying on my home pc. but i am not gentoo developer :(

Comment 12 Rafael Fernández López 2005-11-22 12:38:37 UTC
So?
Comment 13 Alexander Simonov 2005-11-23 08:30:24 UTC
(In reply to comment #8)
> So?

Few day i have no access to my home pc. Sorry.
I trying on this week end, ok?
Comment 14 Rafael Fernández López 2005-11-28 11:20:42 UTC
Well, if you cannot handle this issue, please send it to a developer, or in
other case, assign it to another person. I know that you (almost developers)
have lots of work to do.

Thank you,
Rafael Fern
Comment 15 Rafael Fernández López 2005-11-28 11:20:42 UTC
Well, if you cannot handle this issue, please send it to a developer, or in
other case, assign it to another person. I know that you (almost developers)
have lots of work to do.

Thank you,
Rafael Fernández López.

(In reply to comment #0)
> As you know, spanish users we do use characters like "ñ", "á", "ó", "é", "í",
> "ú". Well, when using the "pure" console (Ctrl+Alt+F1, from the graphical
> interface), and we ask for a simple "ls" in a directory that we had a file like
> "Río.jpg" it is showed CORRECTLY, al characters are showed the right way.
> 
> It is too different when we are talking about typing. I can type with no
> problems "ñ" and "" symbols. But I can't type "á", "é", "í", "ó", "ú".
> 
> In X11 (KDE and Gnome too) there are no problems with any character, all them
> are showed and can be typed correctly.
> 
> ==> Here is my "/etc/env.d/02locale" file:
> 
> LC_ALL="es_ES.UTF-8"
> LANGUAGE="es_ES.UTF-8"
> LANG="es_ES.UTF-8"
> 
> ==> Here is "/etc/conf.d/keymaps" file:
> 
> # /etc/conf.d/keymaps
> # $Header: /var/cvsroot/gentoo-src/rc-scripts/etc/conf.d/keymaps,v 1.1.4.1
> 2005/02/19 02:13:53 vapier Exp $
> 
> # Use KEYMAP to specify the default console keymap.  There is a complete tree
> # of keymaps in /usr/share/keymaps to choose from.
> 
> #KEYMAP="es euro2"
> KEYMAP="-u es euro2"
> 
> # Should we first load the 'windowkeys' console keymap?  Most x86 users will
> # say "yes" here.  Note that non-x86 users should leave it as "no".
> 
> SET_WINDOWKEYS="yes"
> 
> 
> # The maps to load for extended keyboards.  Most users will leave this as is.
> 
> #EXTENDED_KEYMAPS=""
> #EXTENDED_KEYMAPS="backspace keypad euro"
> 
> 
> # Tell dumpkeys(1) to interpret character action codes to be 
> # from the specified character set.
> # This only matters if you set UNICODE="yes" in /etc/rc.conf.
> # For a list of valid sets, run `dumpkeys --help`
> 
> DUMPKEYS_CHARSET="iso-8859-15"
> 
> ==> Here is my "/etc/conf.d/consolefont" file:
> 
> # /etc/conf.d/consolefont
> # $Header: /var/cvsroot/gentoo-src/rc-scripts/etc/conf.d/Attic/consolefont,v
> 1.1.2.2 2005/05/14 20:44:41 vapier Exp $
> 
> # CONSOLEFONT specifies the default font that you'd like Linux to use on the
> # console.  You can find a good selection of fonts in /usr/share/consolefonts;
> # you shouldn't specify the trailing ".psf.gz", just the font name below.
> # To use the default console font, comment out the CONSOLEFONT setting below.
> # This setting is used by the /etc/init.d/consolefont script (NOTE: if you do
> # not want to use it, run "rc-update del consolefont" as root).
> 
> CONSOLEFONT="lat9w-16"
> 
> # CONSOLETRANSLATION is the charset map file to use.  Leave commented to use
> # the default one.  Have a look in /usr/share/consoletrans for a selection of
> # map files you can use.
> 
> CONSOLETRANSLATION="8859-15_to_uni"
> 
> 
> This is my configuration at this moment, but I've tried with all kind of
> combinations and so on... and I've posted in Gentoo Forums a thread where all
> spanish Gentoo users are having the same trouble.
> 
> Here is the link: http://forums.gentoo.org/viewtopic-t-400604.html. (This thread
> is in spanish, because it was written on Spanish forum).
> 
> Thanks,
> Rafael Fernández López.
Comment 16 Jakub Moc (RETIRED) gentoo-dev 2005-11-30 15:52:58 UTC
Don't reassign bugs back to bug wranglers.
Comment 17 Alexander Simonov 2005-12-08 14:41:33 UTC
how i can out spanish in pure console?
special symbols i need
i have english/russian/ukrainian keyboard.....
Comment 18 Rafael Fernández López 2005-12-08 15:14:12 UTC

    
Comment 19 Rafael Fernández López 2005-12-08 15:14:12 UTC
¿What do you mean? How to print out spanish characters ? Well, as I said there  
is no problem printing out "ñ" or "€". The problems came with "á", "é", "í",  
"ó", "ú".  
  
You can set your keyboard for -u es euro2. For printing out those kind of  
charaters I have:  
  
http://www.sussex.ac.uk/its/facilities/pc/keyboards/spanish.gif  
  
1. Press the one that is at the right at "ñ"  
2. Then press u, o, e, i, a 
 
In X11 you may have as a result "ú", "ó", "é", "í", "á". In "pure console" you 
may not have any output. That's the problem. 
Comment 20 Pacho Ramos gentoo-dev 2006-05-06 16:30:03 UTC
I have the same problem :(
Comment 21 Alexander Simonov 2006-05-07 11:07:38 UTC
(In reply to comment #14)
> I have the same problem :(
> 

hm ...
i am tested on my box and have some things ....
but i have one question:
where you are get euro2 keymap?
Comment 22 Santiago M. Mola (RETIRED) gentoo-dev 2007-06-01 15:29:57 UTC
I don't have this problem.

Environment variables:
LC_ALL=es_ES.UTF-8
LANGUAGE=es_ES.UTF-8 (or LANGUAGE="")
LANG=es_ES.UTF-8 (or LANG="")

/etc/conf.d/keymaps:
KEYMAP="es"
DUMPKEYSCHARSET=""

/etc/conf.d/consolefont:
CONSOLEFONT="default8x16"
#CONSOLETRANSLATION unset

unicode is, of course, enabled in USE (and all system compiled with it), and set in rc.conf... 
Comment 23 Pacho Ramos gentoo-dev 2012-01-28 12:20:00 UTC
Closing as utf8 herd is dead and utf8 works fine for me in console for ages