[+] Polskie znaki w urxvt, nadpisywanie locale

Tematy związane z oprogramowaniem, instalacją, konfiguracją
rorio
Posty: 45
Rejestracja: 21 marca 2010, 21:01

[+] Polskie znaki w urxvt, nadpisywanie locale

Post autor: rorio »

Używam Debiana squeeze i mam dość dziwny problem z polskimi znakami.
System jest spolonizowany zgodnie z instrukcją. Polskie znaki działają w firefoxie i w konsoli. Nie działają jednak w urxvt. Nie mam nawet możliwości ich wstukania, jeśli wyświetlam jakiś plika zawierający polskie znaki pojawiają się 'krzaki'. Wynika to pewnie z tego, że w jakiś dziwny sposób po starcie xów

Kod: Zaznacz cały

LANG=pl_PL.UTF-8
LC_CTYPE="pl_PL.UTF-8"
LC_NUMERIC="pl_PL.UTF-8"
LC_TIME="pl_PL.UTF-8"
LC_COLLATE="pl_PL.UTF-8"
LC_MONETARY="pl_PL.UTF-8"
LC_MESSAGES="pl_PL.UTF-8"
LC_PAPER="pl_PL.UTF-8"
LC_NAME="pl_PL.UTF-8"
LC_ADDRESS="pl_PL.UTF-8"
LC_TELEPHONE="pl_PL.UTF-8"
LC_MEASUREMENT="pl_PL.UTF-8"
LC_IDENTIFICATION="pl_PL.UTF-8"
LC_ALL=
zamienia się w

Kod: Zaznacz cały

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=
Problem w tym, że absolutnie nie mam pojęcia w którym momencie te zmienne są nadpisywane. Profilaktycznie usunąłem .bashrc, .bash_profile i .Xdefaults. Używam fluxboxa.
Awatar użytkownika
tremor
Beginner
Posty: 186
Rejestracja: 12 marca 2010, 18:20
Lokalizacja: Wrocław

Post autor: tremor »

Spróbuj wpisać te ustawienia do

Kod: Zaznacz cały

/etc/environment
.
fnmirk
Senior Member
Posty: 8324
Rejestracja: 03 grudnia 2007, 06:37

Post autor: fnmirk »

Przedstaw wyniki:

Kod: Zaznacz cały

locale -a
dpkg -l | grep font
cat /etc/apt/sources.list
uname -r
rorio
Posty: 45
Rejestracja: 21 marca 2010, 21:01

Post autor: rorio »

Kod: Zaznacz cały

locale -a
C
POSIX
pl_PL.utf8

Kod: Zaznacz cały

dpkg -l | grep font
ii  console-data                      2:1.10-2                        keymaps, fonts, charset maps, fallback table
ii  console-setup                     1.51                            console font and keymap setup program
ii  console-terminus                  4.30-2                          Fixed-width fonts for fast reading on the Li
ii  defoma                            0.11.10-4                       Debian Font Manager -- automatic font config
ii  fontconfig                        2.8.0-2                         generic font configuration library - support
ii  fontconfig-config                 2.8.0-2                         generic font configuration library - configu
ii  fonty-rg                          0.5                             Linux console fonts in various encodings
ii  gsfonts                           1:8.11+urwcyr1.0.7~pre44-4      Fonts for the Ghostscript interpreter(s)
ii  gsfonts-x11                       0.21                            Make Ghostscript fonts available to X11
ii  kbd                               1.15.1-2                        Linux console font and keytable utilities
ii  libfont-afm-perl                  1.20-1                          Font::AFM - Interface to Adobe Font Metrics 
ii  libfont-freetype-perl             0.03-1                          Read font files and render glyphs from Perl 
ii  libfontconfig1                    2.8.0-2                         generic font configuration library - runtime
ii  libfontenc1                       1:1.0.5-2                       X11 font encoding library
ii  libfreetype6                      2.3.11-1                        FreeType 2 font engine, shared library files
ii  libgraphite3                      1:2.3.1-0.2                     SILGraphite - a "smart font" rendering engin
ii  libxfont1                         1:1.4.1-1                       X11 font rasterisation library
ii  libxft2                           2.1.14-1                        FreeType-based font drawing library for X
ii  psfontmgr                         0.11.10-4                       PostScript font manager -- part of Defoma, D
ii  ttf-arphic-uming                  0.2.20080216.1-3                "AR PL UMing" Chinese Unicode TrueType font 
ii  ttf-dejavu-core                   2.30-2                          Vera font family derivate with additional ch
ii  ttf-dejavu-extra                  2.30-2                          Vera font family derivate with additional ch
ii  ttf-freefont                      20090104-5                      Freefont Serif, Sans and Mono Truetype fonts
ii  ttf-lyx                           1.6.5-1                         TrueType versions of some TeX fonts
ii  ttf-mscorefonts-installer         3.2                             Installer for Microsoft TrueType core fonts
ii  ttf-opensymbol                    1:3.2.0-4                       OpenSymbol TrueType font
ii  ttf-sazanami-gothic               20040629-8                      Sazanami Gothic Japanese TrueType font
ii  ttf-sil-gentium                   20081126:1.02-10                extended Unicode Latin font ("a typeface for
ii  ttf-sil-gentium-basic             1.1-2                           smart Unicode font families (Basic and Book 
ii  ttf-unfonts-core                  1.0.1-7                         Un series Korean TrueType fonts
ii  ttf-unifont                       1:5.1.20080914-1                TrueType version of the GNU Unifont
ii  unifont                           1:5.1.20080914-1                font with a glyph for each visible Unicode 5
ii  x-ttcidfont-conf                  32                              TrueType and CID fonts configuration for X
ii  x11-xfs-utils                     7.4+1                           X font server utilities
ii  xfonts-100dpi                     1:1.0.1                         100 dpi fonts for X
ii  xfonts-100dpi-transcoded          1:1.0.1                         100 dpi fonts for X (transcoded from ISO 106
ii  xfonts-75dpi                      1:1.0.1                         75 dpi fonts for X
ii  xfonts-75dpi-transcoded           1:1.0.1                         75 dpi fonts for X (transcoded from ISO 1064
ii  xfonts-base                       1:1.0.1                         standard fonts for X
ii  xfonts-biznet-100dpi              3.0.0-20                        100 dpi BIZNET ISO-8859-2 fonts for X server
ii  xfonts-biznet-75dpi               3.0.0-20                        75 dpi BIZNET ISO-8859-2 fonts for X servers
ii  xfonts-biznet-base                3.0.0-20                        Standard BIZNET ISO-8859-2 fonts for X serve
ii  xfonts-efont-unicode              0.4.2-3                         /efont/ Unicode fonts for X which cover vari
ii  xfonts-efont-unicode-ib           0.4.2-3                         /efont/ Unicode fonts for X (italic and bold
ii  xfonts-encodings                  1:1.0.3-1                       Encodings for X.Org fonts
ii  xfonts-intl-european              1.2.1-8                         International fonts for X -- European
ii  xfonts-mathml                     4                               Type1 Symbol font for MathML
ii  xfonts-scalable                   1:1.0.1-1                       scalable fonts for X
ii  xfonts-terminus                   4.30-2                          Fixed-width fonts for fast reading
ii  xfonts-terminus-oblique           4.30-2                          Oblique version of the Terminus font
ii  xfonts-unifont                    1:5.1.20080914-1                PCF (bitmap) version of the GNU Unifont
ii  xfonts-utils                      1:7.5+2                         X Window System font utility programs

Kod: Zaznacz cały

cat /etc/apt/sources.list
# deb http://ftp.pl.debian.org/debian/ squeeze main
deb http://ftp.pl.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.pl.debian.org/debian/ squeeze main contrib non-free
deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main

Kod: Zaznacz cały

uname -r
2.6.32-trunk-686
@tremor: Nie pomogło.
Dziwne jest to, że kiedy loguję się do konsoli wszystko jest poustawiane tak jak powinno być, mogę wprowadzać polskie znaki, nie ma też krzaków.

Dodane:
Tajemnica wyjaśniona: slim. Znalazłem błąd sprzed 2 lat. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=441630 Teoretycznie powinien być już naprawiony.
Rozwiązanie: albo bawić się w konfigurowanie slima, albo zainstalować na przykład xdm.
ODPOWIEDZ