You are not logged in.

#1 2010-10-16 18:05:56

aurocha
Member
Registered: 2009-11-16
Posts: 52

[SOLVED] - pt_PT.utf8 language not working in kms enabled console

Hi all,

I really want to use UTF-8, because I have other linux boxes with it enabled.
Everything was working fine with this configuration - /etc/rc.conf:

LOCALE="pt_PT.ISO-8859-1"
HARDWARECLOCK="localtime"
TIMEZONE="Europe/Lisbon"
KEYMAP="pt-latin1"
CONSOLEFONT="lat1-16"
CONSOLEMAP=
USECOLOR="yes"

Then I decided to drop pt_PT.iso-8859-1 in favour of pt_PT.utf8:

LOCALE="pt_PT.utf8"
HARDWARECLOCK="localtime"
TIMEZONE="Europe/Lisbon"
KEYMAP="pt-latin1 pt-latin9 euro"
CONSOLEFONT="lat1-16"
CONSOLEMAP=
USECOLOR="yes"

When I just just use pt-latin9, i get ~ instead of ã, 'e instead of é, etc. The euro works.
I played with loadkeys, setfont and kbd_mode. Nothing seems to work
I modified rc.conf to the recommended in this post: https://bbs.archlinux.org/viewtopic.php?id=67044.

My current rc.conf is as follows:

LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
TIMEZONE="Europe/Lisbon"
KEYMAP="pt-latin1 pt-latin9 euro"
CONSOLEFONT="lat0-16"
CONSOLEMAP=
USECOLOR="yes"

Doesn't work
Anyone facing similar issues?

Last edited by aurocha (2010-11-02 18:48:39)

Offline

#2 2010-10-16 19:19:17

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] - pt_PT.utf8 language not working in kms enabled console

Are you using a different consolefont or is it just a typo?

Last edited by karol (2010-10-16 19:23:18)

Offline

#3 2010-10-16 19:53:23

aurocha
Member
Registered: 2009-11-16
Posts: 52

Re: [SOLVED] - pt_PT.utf8 language not working in kms enabled console

Hi Karol,

Tried several fonts. lat1-16 or lat0-16, both don't seem to work.
Thank you for your reply,

Regards,

-aurocha

Offline

#4 2010-10-17 02:20:02

Diaz
Member
From: Portugal
Registered: 2008-04-16
Posts: 366

Re: [SOLVED] - pt_PT.utf8 language not working in kms enabled console

I don't really know i just have this:
LOCALE="pt_PT.UTF-8"
HARDWARECLOCK="localtime"
TIMEZONE="Europe/Lisbon"
KEYMAP="pt-latin9"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

Offline

#5 2010-10-17 10:54:16

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED] - pt_PT.utf8 language not working in kms enabled console

It is pt_PT.UTF-8 and not pt_PT.utf8. This stuff is case sensitive and you need to use the exact same thing that is listed in /etc/locale.gen

Also don't forget to uncomment the locale you want to use and run locale-gen as root.

I can confirm that trying to input any letter with accents fails in the tty while using KMS. It seems there is something missing in the keymap file (something related with composing two keys into one letter, I couldn't figure out how to make it work).

The console font does not seem to be the issue here, because I can list files with Portuguese characters just fine with the default font arch uses (I don't have anything specified in rc.conf.

Also I'm not sure but I would say that using KEYMAP="pt-latin1 pt-latin9 euro" will load the keymaps in sequence so the keymap that would be used would be mostly "euro". Only the stuff not defined by euro will remain from loading pt-latin9 and only the stuff not defined by pt-latin9 will remain from pt-latin1, I'm not sure if that is your idea or if it is a good idea altogether.

Edit
It is not working when not using KMS too, maybe a change in the initscripts caused this.

Last edited by R00KIE (2010-10-17 13:15:42)


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#6 2010-11-02 18:48:01

aurocha
Member
Registered: 2009-11-16
Posts: 52

Re: [SOLVED] - pt_PT.utf8 language not working in kms enabled console

Hi all,

After a little time wasted, in which I even recompiled kbd from ABS, I came accross the solution.
It is SOLVED for me now, but I'd like to know if it is to you too. Please try the following:

/etc/rc.conf

LOCALE="pt_PT.utf8"
HARDWARECLOCK="localtime"
TIMEZONE="Europe/Lisbon"
KEYMAP="pt-latin9 compose.latin1 euro"
CONSOLEFONT="lat9v-16"
CONSOLEMAP=
USECOLOR="yes"

compose.latin1 is the secret here, and changing the console font. Lat9v-16 is absolutely equal to the font showed during boot - you won't feel any difference - but supports ç ã €, etc...
In that order, with KMS enabled console (radeon) I have all accentuated characters in the console using utf-8.

Please reply to check if it works for you too.
Regards,

- aurocha

Last edited by aurocha (2010-11-06 16:04:50)

Offline

#7 2010-11-03 15:53:14

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED] - pt_PT.utf8 language not working in kms enabled console

Great finding smile With the info you posted and some fiddling I've been able to put everything to work with:

LOCALE="pt_PT.UTF-8"
HARDWARECLOCK="UTC"
TIMEZONE="Europe/Lisbon"
KEYMAP="pt-latin9 compose.latin1"
CONSOLEFONT="lat9v-16"
CONSOLEMAP=
USECOLOR="yes"

I didn't need to load the euro keymap for things to work, any special reason why you load it?

Edit: typo.

Last edited by R00KIE (2010-11-04 13:19:52)


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#8 2010-11-04 11:08:25

aurocha
Member
Registered: 2009-11-16
Posts: 52

Re: [SOLVED] - pt_PT.utf8 language not working in kms enabled console

Hello,

While I was making tests I loaded it in order to have the € symbol.
I'll try to boot without the euro keymap and see it it works.

Regards,

- aurocha

Offline

#9 2010-11-06 15:59:20

aurocha
Member
Registered: 2009-11-16
Posts: 52

Re: [SOLVED] - pt_PT.utf8 language not working in kms enabled console

Hi,

Removed the "euro" from /etc/rc.conf.  The AltGR+E gives the € symbol. But the left Alt+E doesn't. It is supposed to work with right Alg(AltGR+E).
But if someone preferes to press Left (Alt+E) to get the same symbol, then the euro keymap must be loaded.

Here's my final /etc/rc.conf

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime", any other value will result
#   in the hardware clock being left untouched (useful for virtualization)
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="pt_PT.utf8"
HARDWARECLOCK="localtime"
TIMEZONE="Europe/Lisbon"
KEYMAP="pt-latin9 compose.latin1"
CONSOLEFONT="lat9v-16"
CONSOLEMAP=
USECOLOR="yes"

Hope it's useful.
Best regards,

- aurocha

Last edited by aurocha (2010-11-06 16:00:32)

Offline

Board footer

Powered by FluxBB