You are not logged in.

#1 2009-08-20 01:00:39

descendent87
Member
Registered: 2009-07-23
Posts: 105

Locale & openbox keyboard problems

Been using KDE and everything was working fine, decided to install openbox instead tonight and whenever I try to open sonata I get an error

Failed to set locale

but all my locale settings are fine (i think), rc.conf has LOCALE="en_GB.utf8", both en_GB are uncommented in /etc/locale and I've tried running "locale-gen" again but makes no difference.
The other problem is keyboard settings, I want British English. In KDE I just had to install the right KDE locale package but can't work out how to set it in Openbox. In rc.conf I have KEYMAP="uk" and have in /etc/hal/fdi/policy/10-keymap.fdi I have the following:

<merge key="input.xkb.layout" type="string">uk</merge>
<merge key="input.xkb.variant" type="string">qwerty</merge>

but still the keyboard is not in british english (@ and " are wrong way round, instead of pound sign I have # etc)
Any help would be appreciated, thanks

Offline

#2 2009-08-20 01:23:27

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: Locale & openbox keyboard problems

Hello descendent87!

gb instead of uk ? Try it with setxkbmap gb.

Offline

#3 2009-08-20 01:31:01

descendent87
Member
Registered: 2009-07-23
Posts: 105

Re: Locale & openbox keyboard problems

Thanks that worked, so should I replace "uk" with "gb" just in 10-keymap.fdi or in rc.conf aswell?

Offline

#4 2009-08-20 03:37:28

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: Locale & openbox keyboard problems

I think It's worth to try out.

Offline

#5 2009-08-20 11:58:55

descendent87
Member
Registered: 2009-07-23
Posts: 105

Re: Locale & openbox keyboard problems

Tried it in both but no change, have added setxkbmap gb to .xinitrc now and seems to do the job.
Still have the "Failed to set locale" problem though

Offline

#6 2009-08-20 22:26:00

descendent87
Member
Registered: 2009-07-23
Posts: 105

Re: Locale & openbox keyboard problems

Just found another problem, tried to read a manual for a program and this popped up

man: can't set the locale; make sure $LC_* and $LANG are correct

EDIT: and another error from abcde

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_COLLATE = "C",
    LC_CTYPE = "ja_JP.utf8",
    LANG = "en_GB.utf8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

Last edited by descendent87 (2009-08-20 22:38:00)

Offline

#7 2009-08-21 01:46:21

Confuseling
Member
Registered: 2009-07-23
Posts: 13

Re: Locale & openbox keyboard problems

I've got this too, using KDE 4, also with en_GB.utf8, which might be a heck of a coincidence.

The strange thing is the keys map perfectly - it's just that nigh on everything in the terminal spits out errors, man like descendent found, and yaourt goes absolutely crazy.

I'm 99% sure I've followed the wiki right. I'm gonna try setting it deliberately to US and see what happens then...

...

Aha! Weird. If I put

export LC_ALL=en_GB.utf8

into my .bashrc, it works. Notice that's GB, not UK (as you would have in rc.conf).

Weirdly, it only works in .bashrc, not in rc.local. Though I haven't tried UK in rc.local. Confused yet? You should be. big_smile

Shall I put this in the wiki, or is it too specific...? Or even file a bug, if someone can suggest what package to file it against...?

Last edited by Confuseling (2009-08-21 13:43:38)

Offline

#8 2009-08-21 21:05:58

descendent87
Member
Registered: 2009-07-23
Posts: 105

Re: Locale & openbox keyboard problems

When booting I get a message saying something about

Setting keymap to GB         [FAILED]

so that obviously doesn't work and now I'm using GDM instead of .xinitrc to start openbox I have to type "setxkbmap gb" once I login, would adding that to my autostart.sh work?
Also does anyone know how to sort the locale errors I keep getting?

Offline

#9 2009-08-22 15:18:27

Confuseling
Member
Registered: 2009-07-23
Posts: 13

Re: Locale & openbox keyboard problems

No idea I'm afraid... You could try setting it to US, as an experiment, and see if it still errors...?

Offline

#10 2009-08-23 14:50:59

jazz452
Member
Registered: 2008-07-29
Posts: 21

Re: Locale & openbox keyboard problems

Yes it would.
But it should work in xinitrc remember to add "&" at the end of set "setxkbmap gb"
like this:
setxkbmap gb &

Last edited by jazz452 (2009-08-23 14:54:11)

Offline

Board footer

Powered by FluxBB