[slack-ru] Re: Локаль

  • From: "Dmitry A. Koptev" <dimez@xxxxx>
  • To: slack-ru@xxxxxxxxxxxxx
  • Date: Wed, 29 Oct 2003 16:28:16 +0300

Пашев Игорь Николаевич wrote:

>Как поставить koi8-r
>Какие файлы, где должны быть, где они в дистрибутиве etc.
>  
>
---/etc/rc.d/rc.font---
#!/bin/sh
#
# This selects your default screen font from among the ones in
# /usr/share/kbd/consolefonts.
#
setfont -v Cyr_a8x16.psfu.gz -m koi2alt
for n in 1 2 3 4 5 6;
do
    echo -ne "\033(K" > /dev/tty$n
done
---rc.font---

---rc.keymap---
#!/bin/sh
# Load the keyboard map.  More maps are in /usr/share/kbd/keymaps.
if [ -x /usr/bin/loadkeys ]; then
 /usr/bin/loadkeys ru1.map
fi
---rc.keymap---

---/usr/share/locale/locale.alias---
...
russian ru_RU.KOI8-R
...
---locale.alias---
---/etc/profile.d/lang.sh---
#!/bin/sh
# Set the system locale (default C is the same as 
en_US):                                                       
# export LANG=C
# This setting has been reported to fix some cut and paste
# problems with GTK2.  If you experience this, try it:
# export LANG=en_US.ISO8859-1
LANG="ru_RU.KOI8-R"
LC_NUMERIC="POSIX" #  Некоторые коммерческие программы хотят только так
LC_MESSAGES="POSIX" # Это для того, чтобы диалоговые окна программ не 
локализировались, если хочется - закомментируйте
export LANG LC_NUMERIC LC_MESSAGES
---lang.sh---

-- 
WBR Dmitry


Other related posts: