LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-21-2007, 03:01 PM   #1
__saint
LQ Newbie
 
Registered: Jul 2006
Posts: 7

Rep: Reputation: 0
utf-8 in slackware 11.0 cyrillic font only on tty1


hi *

I try to add support for ru_RU.UTF-8 to Slackware 11.0. For this, I just do the following:

Code:
1) cat > /etc/rc.d/rc.keymap << "EOF"
   #!/bin/sh
   if [ -x /usr/bin/loadkeys ]; then
       /usr/bin/loadkeys ru-utf.my.map.gz
   fi
 
2) chmod a+x /etc/rc.d/rc.keymap

3) cat > /etc/rc.d/rc.font << "EOF"
   #!/bin/sh
   unicode_start cyr-sun16

4) cat > /etc/profile.d/lang.sh << "EOF"
   #!/bin/sh
   export LC_CTYPE=ru_RU.UTF-8
   export LC_COLLATE=ru_RU.UTF-8

5) in file /usr/bin/unicode_start I change line

    echo -n -e '33%G'

   with

    for n in 1 2 3 4 5 6; do
     echo -n -e '\033%G' > /dev/tty$n
    done

7) in file /usr/share/locale/locale.alias I find line "russian" and change it
to:

    russuin ru
    ru ru_RU
    ru_RU ru_RU.UTF-8
So after I do the above and reboot it begins work, but only in /dev/tty1 and in /dev/pts/* i.e in the first virtual console (/dev/vc/1) and in pseudo-terminals (/dev/pts/*). But it doesn't work on the other virtual consoles (tty2 - tt6). Any suggestions?

thanks in advance
 
Old 06-22-2007, 11:40 AM   #2
iiv
Member
 
Registered: Jun 2007
Location: Russia, Moscow Region
Distribution: Slackware
Posts: 167

Rep: Reputation: 30
I didn't edit the unicode_start; as i believe it it shouldn't be. I just have this in my rc.font:
/usr/bin/unicode_start cyr-sun16
for n in 1 2 3 4 5 6; do
echo -n -e '\033%G' > /dev/tty$n
done


Using UTF-8 is still not recommended as many programs are still not ready to support it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
im getting UTF-8 to STRING: Could not open converter from 'UTF-8' to 'ISO-8859-1' jabka Linux - Newbie 2 11-24-2006 05:44 AM
Help needed with font installation on Debian 3.1 with locale all set to en_US.UTF-8 PhantmShado Linux - Software 1 02-20-2006 03:50 PM
Enabling the Cyrillic Font STARHARVEST Slackware 26 12-30-2005 11:37 PM
[Enter] in text documents diffrent on Windows and Linux? UTF-8/UTF-16 problem or? brynjarh Linux - General 1 11-24-2004 05:20 AM
Typing in Cyrillic on Slackware 9.1 / KDE 2.14 ming0 General 4 02-28-2004 11:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration