You are not logged in.
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
Hello descendent87!
gb instead of uk ? Try it with setxkbmap gb.
Offline
Thanks that worked, so should I replace "uk" with "gb" just in 10-keymap.fdi or in rc.conf aswell?
Offline
Offline
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
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
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.
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
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
No idea I'm afraid... You could try setting it to US, as an experiment, and see if it still errors...?
Offline
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