You are not logged in.

#1 2011-11-15 16:53:21

zw0rk
Member
Registered: 2010-02-09
Posts: 7

[SOLVED] Locale problem

Hi. I've got the following:

[zw0rk@myhost ~]$ locale -a
C
POSIX
en_US.utf8
ru_RU.utf8

In /etc/rc.conf:

LOCALE="ru_RU.UTF-8"
DAEMON_LOCALE="no"
KEYMAP="ru"
CONSOLEFONT="cyr-sun16"
CONSOLEMAP=

But:

[zw0rk@myhost ~]$ locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

And, if i switch my locale with "export LANG="ru_RU.UTF-8"", all cyrillc symbols are translated to squares (in sakura) or hieroglyphs (in urxvt).

I have teminus, xorg-fonts-cyrillic installed.

How do i:

1) Fix the default locale
2) Force GUI consoles to use correct fonts?

Last edited by zw0rk (2011-11-17 21:54:51)

Offline

#2 2011-11-16 08:01:13

zw0rk
Member
Registered: 2010-02-09
Posts: 7

Re: [SOLVED] Locale problem

Am i asking something stupid? I've made everything using WIKI and on my prev. Arch installation this config worked well :-/

Last edited by zw0rk (2011-11-16 08:01:34)

Offline

#3 2011-11-16 19:25:53

whoami
Member
Registered: 2011-11-13
Posts: 3

Re: [SOLVED] Locale problem

hi,

do you have the file 'locale.sh' in /etc/profile.d deleted befor updating ? or is the file missing ?

to make sure:

rm /etc/profile.d/locale.sh
pacman -Syu
pacman -S initscripts (to force installation of locale.sh)
reboot

did you read the "/etc/locale.gen" section in the beginners guide ?

whoami

Last edited by whoami (2011-11-16 19:26:33)

Offline

#4 2011-11-17 12:39:38

zw0rk
Member
Registered: 2010-02-09
Posts: 7

Re: [SOLVED] Locale problem

I've read locale.gen section and I've reproduced these steps. Locale is set properly now, but the fonts are still missing.

I'm in Xfce4 if it matters.

Offline

#5 2011-11-17 18:24:34

nexus7
Member
From: brain dump
Registered: 2006-12-06
Posts: 285

Re: [SOLVED] Locale problem

zw0rk wrote:

2) Force GUI consoles to use correct fonts?

So in xfce you probably use "terminal" (aka "xfce-terminal"). Font configuration there is easy with setting your preferences in "appearance" via the menu bar or right-click.


we are Arch.
you will be assimilated!
resistance is futile!

Offline

#6 2011-11-17 20:28:31

zw0rk
Member
Registered: 2010-02-09
Posts: 7

Re: [SOLVED] Locale problem

No. I'm using urxvt (with terminus configured in .Xdefaults) and sakura (where i've set terminus via right-click menu). I'm not THAT stupid smile

Offline

#7 2011-11-17 21:11:41

nexus7
Member
From: brain dump
Registered: 2006-12-06
Posts: 285

Re: [SOLVED] Locale problem

lol, welcome!

Hieroglyphs indicate a font is displayed in a wrong encoding, and boxes that a font does not contain certain character(s), however. It is something specific on declaring types of fonts in a config file; truetype-fonts are different than e.g. bitmap fonts. The first need a preceeding "xft:", and also all the other properties like font name and typeface need a different format than the latter, as seen here and there. (I don't use urxvt or sakura btw.)

Regarding your locale: do xfce and the other programs (with installed language pack/enabled localisation) already show their menus and all in Russian?


we are Arch.
you will be assimilated!
resistance is futile!

Offline

#8 2011-11-17 21:13:41

twilight0
Member
From: Greece
Registered: 2011-05-01
Posts: 231
Website

Re: [SOLVED] Locale problem

Do you use LightDM? I had the same issue with LightDM. An upstream bug has already been reported.


Proud Arch Linux user since 2007.

Offline

#9 2011-11-17 21:22:31

nexus7
Member
From: brain dump
Registered: 2006-12-06
Posts: 285

Re: [SOLVED] Locale problem

twilight0: if you mean me, no, I don't use LightDM.


we are Arch.
you will be assimilated!
resistance is futile!

Offline

#10 2011-11-17 21:44:51

zw0rk
Member
Registered: 2010-02-09
Posts: 7

Re: [SOLVED] Locale problem

Yes, the problem was with LightDM. Switching to SLIM solves it.

Last edited by zw0rk (2011-11-17 21:54:37)

Offline

#11 2011-11-17 22:21:00

twilight0
Member
From: Greece
Registered: 2011-05-01
Posts: 231
Website

Re: [SOLVED] Locale problem

nexus7 wrote:

twilight0: if you mean me, no, I don't use LightDM.

Oups sorry for not making clear, I only asked the author of this topic. tongue


Proud Arch Linux user since 2007.

Offline

#12 2011-11-17 22:28:40

nexus7
Member
From: brain dump
Registered: 2006-12-06
Posts: 285

Re: [SOLVED] Locale problem

twilight0 wrote:
nexus7 wrote:

twilight0: if you mean me, no, I don't use LightDM.

Oups sorry for not making clear, I only asked the author of this topic. tongue

nvm, you helped to solve the problem though. smile


we are Arch.
you will be assimilated!
resistance is futile!

Offline

Board footer

Powered by FluxBB