Strona 1 z 2

[+] K3b - nagrywanie plików z polskimi znakami w nazwie

: 03 sierpnia 2009, 20:01
autor: T4ng10r
W czasach Ubuntu i KDE z pomocą K3b nagrywałem swobodnie płytki.
Zmieniłem system na Debiana i ponownie zwróciłem się w stronę kolegi k3b. Pojawił się problem. Zaraz po starcie program woła:

Kod: Zaznacz cały

Systemowe kodowanie znaków to ANSI_X3.4-1968
i nie pozwala dodawać plików z polskimi znakami w nazwie. Przy kilku plikach nie jest to problemem - po prostu zmieniam znaki na polskawe.
Pojawiła się jednak potrzeba nagrania większej ilości plików, a zmienianie ich nazw jest co najmniej zbyt pracochłonne i raczej bezcelowe (to k3b ma problem, nie system czy FS).
Próbowałem szczęścia z locale i dpkg. W:

Kod: Zaznacz cały

dpkg-reconfigure locales
mam wybrane

Kod: Zaznacz cały

pl_PL.UTF-8 UTF-8
]pl_PL ISO-8859-2
domyślnie wybrane jest pl_PL. Wynik locale jest jak niżej.

Kod: Zaznacz cały

LANG=pl_PL
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C
W konsoli zauważyłem, że w ,,Character Encodings'' jest domyślnie wybrane ,,ANSI_X3.4-1968'' - więc to pewnie stąd k3b bierze domyślne kodowanie.
Zaznaczam, że ze stroną kodową problemy miałem też pobierając kod SVNa i wywalało znaki NULL (więc znowu strona kodowa).

Jakaś rada panowie jak nad tym zapanować, by w konsoli i systemie była jedna strona kodowa?

: 03 sierpnia 2009, 21:17
autor: fnmirk
Zacznij od początku i przedstaw wynik polecenia:

Kod: Zaznacz cały

cat /etc/apt/sources.list

: 03 sierpnia 2009, 21:20
autor: T4ng10r
Oto zawartość mojego sources.list

Kod: Zaznacz cały

deb [url]http://security.debian.org/[/url] lenny/updates main contrib
deb-src [url]http://security.debian.org/[/url] lenny/updates main contrib

deb [url]http://volatile.debian.org/debian-volatile[/url] lenny/volatile main contrib
deb-src [url]http://volatile.debian.org/debian-volatile[/url] lenny/volatile main contrib
deb [url]http://wine.budgetdedicated.com/apt[/url] etch main
#---- wpisy podstawowe
deb [url]http://ftp.pl.debian.org/debian/[/url] lenny main non-free contrib
deb-src [url]http://ftp.pl.debian.org/debian/[/url] lenny main non-free contrib
deb [url]http://security.debian.org/[/url] lenny/updates main contrib non-free
deb-src [url]http://security.debian.org/[/url] lenny/updates main contrib non-free
#----- backporty LENNY
deb [url]http://www.backports.org/debian[/url] lenny-backports main contrib non-free
# deb [url]http://deb.opera.com/opera/[/url] stable non-free

deb [url]http://apt.jenslody.de/[/url] any main
deb-src [url]http://apt.jenslody.de/[/url] any main
deb [url]http://apt.wxwidgets.org/[/url] etch-wx main

: 03 sierpnia 2009, 21:36
autor: fnmirk
Ja mam takie:

Kod: Zaznacz cały

deb [url]http://ftp.pl.debian.org/debian/[/url] lenny main non-free contrib
#deb-src [url]http://ftp.pl.debian.org/debian/[/url] lenny main non-free contrib
deb [url]http://security.debian.org/[/url] lenny/updates main contrib non-free
#deb-src [url]http://security.debian.org/[/url] lenny/updates main contrib non-free
deb [url]http://www.debian-multimedia.org[/url] lenny main
#deb-src [url]http://www.debian-multimedia.org[/url] lenny main
deb [url]http://deb.opera.com/opera/[/url] testing non-free

deb [url]http://volatile.debian.org/debian-volatile[/url] lenny/volatile main contrib non-free
#deb-src [url]http://volatile.debian.org/debian-volatile[/url] lenny/volatile main contrib non-free

deb [url]http://www.backports.org/debian[/url] lenny-backports main contrib non-free
#deb-src [url]http://www.backports.org/debian[/url] lenny-backports main contrib non-free
Zmień i wykonaj aktualizację sytemu tak jak to jest tu opisane:
http://debian.linux.pl/viewtopic.php?p=89342#89342

: 03 sierpnia 2009, 22:31
autor: T4ng10r
Przykro mi, ale to nie rozwiązało problemu.
Mimo wybierania w

Kod: Zaznacz cały

dkpg-reconfigure locales
zarówno UTF-8 jak i ISO, konsola odpala się z kodowaniem ANSI_X3.4-1968. Nawet dodałem do .bashrc exporty do LC

Kod: Zaznacz cały

export LANG=pl_PL.UTF-8
export LC_CTYPE="pl_PL.UTF-8"
export LC_NUMERIC="pl_PL.UTF-8"
export LC_TIME="pl_PL.UTF-8"
export LC_COLLATE="pl_PL.UTF-8"
export LC_MONETARY="pl_PL.UTF-8"
export LC_MESSAGES="pl_PL.UTF-8"
export LC_PAPER="pl_PL.UTF-8"
export LC_NAME="pl_PL.UTF-8"
export LC_ADDRESS="pl_PL.UTF-8"
export LC_TELEPHONE="pl_PL.UTF-8"
export LC_MEASUREMENT="pl_PL.UTF-8"
export LC_IDENTIFICATION="pl_PL.UTF-8"
export LC_ALL=""
Dalej k3b podczas uruchamiania krzyczy o problemach z kodowaniem.
Dla jasności - chciałbym mieć w całym systemie jednolite kodowanie, czyli UTF-8.

: 03 sierpnia 2009, 22:39
autor: fnmirk
T4ng10r, spokojnie, to miało jedynie usprawnić system. Mam rozumieć, że żadnych błędów przy aktualizacji nie było?

Nie wykonuj niepotrzebnych poleceń.

Przedstaw wyniki poleceń:

Kod: Zaznacz cały

dpkg -l | grep font
dpkg -l | grep console

: 04 sierpnia 2009, 07:06
autor: T4ng10r

Kod: Zaznacz cały

dpkg -l | grep font

ii  console-data                                  2:1.07-11                      keymaps, fonts, charset maps, fallback table
ii  console-tools                                 1:0.2.3dbs-65.1                Linux console and font utilities
ii  defoma                                        0.11.10-0.2                    Debian Font Manager -- automatic font config
ii  fontconfig                                    2.6.0-3                        generic font configuration library - support
ii  fontconfig-config                             2.6.0-3                        generic font configuration library - configu
ii  gsfonts                                       1:8.11+urwcyr1.0.7~pre44-3     Fonts for the Ghostscript interpreter(s)
ii  gucharmap                                     1:2.22.3-2                     Unicode character picker and font browser
ii  libconsole                                    1:0.2.3dbs-65.1                Shared libraries for Linux console and font 
ii  libfontconfig1                                2.6.0-3                        generic font configuration library - runtime
ii  libfontenc1                                   1:1.0.4-3                      X11 font encoding library
ii  libfreetype6                                  2.3.7-2+lenny1                 FreeType 2 font engine, shared library files
ii  libfreetype6-dev                              2.3.7-2+lenny1                 FreeType 2 font engine, development files
ii  libxfont1                                     1:1.3.3-1                      X11 font rasterisation library
ii  libxft2                                       2.1.12-3                       FreeType-based font drawing library for X
ii  msttcorefonts                                 2.7                            transitional dummy package
ii  ttf-dejavu-core                               2.25-3                         Vera font family derivate with additional ch
ii  ttf-dejavu-extra                              2.25-3                         Vera font family derivate with additional ch
ii  ttf-liberation                                1.04.93-1                      Free fonts with the same metrics as Times, A
ii  ttf-mscorefonts-installer                     2.7                            Installer for Microsoft TrueType core fonts
ii  ttf-opensymbol                                1:2.4.1+dfsg-1                 The OpenSymbol TrueType font
ii  x-ttcidfont-conf                              31                             TrueType and CID fonts configuration for X
ii  x11-xfs-utils                                 7.3+1                          X font server utilities
ii  xfonts-100dpi                                 1:1.0.0-4                      100 dpi fonts for X
ii  xfonts-75dpi                                  1:1.0.0-4                      75 dpi fonts for X
ii  xfonts-base                                   1:1.0.0-5                      standard fonts for X
ii  xfonts-encodings                              1:1.0.2-3                      Encodings for X.Org fonts
ii  xfonts-scalable                               1:1.0.0-6                      scalable fonts for X
ii  xfonts-terminus                               4.26-2.1                       Fixed-width fonts for fast reading
ii  xfonts-utils                                  1:7.4+1                        X Window System font utility programs

Kod: Zaznacz cały

dpkg -l | grep console

ii  console-common                                0.7.80                         basic infrastructure for text console config
ii  console-data                                  2:1.07-11                      keymaps, fonts, charset maps, fallback table
ii  console-tools                                 1:0.2.3dbs-65.1                Linux console and font utilities
ii  libconsole                                    1:0.2.3dbs-65.1                Shared libraries for Linux console and font 
ii  libjline-java                                 0.9.94-1                       Java library for handling console input
ii  libsvga1                                      1:1.4.3-27                     console SVGA display libraries
ii  libsvga1-dev                                  1:1.4.3-27                     console SVGA display development libraries a
ii  libxine1-console                              1.1.14-6                       libaa/libcaca/framebuffer/directfb related p

: 04 sierpnia 2009, 09:36
autor: fnmirk
U mnie to wygląda tak:

Kod: Zaznacz cały

dpkg -l | grep console
ii  console-common                        0.7.80                         basic infrastructure for text console configuration
ii  console-data                          2:1.07-11                      keymaps, fonts, charset maps, fallback tables for console-tool
ii  console-terminus                      4.26-2.1                       Fixed-width fonts for fast reading on the Linux console
ii  console-tools                         1:0.2.3dbs-65.1                Linux console and font utilities
ii  fonty-rg                              0.5                            Linux console fonts in various encodings
ii  libconsole                            1:0.2.3dbs-65.1                Shared libraries for Linux console and font manipulation
ii  libsvga1                              1:1.4.3-27                     console SVGA display libraries
ii  libsvga1-dev                          1:1.4.3-27                     console SVGA display development libraries and headers
ii  libxine1-console                      1.1.14-6                       libaa/libcaca/framebuffer/directfb related plugins for libxine
ii  pdmenu                                1.2.96                         simple console menu program
ii  svgalib-bin                           1:1.4.3-27                     console SVGA display utilities

Kod: Zaznacz cały

dpkg -l | grep font
ii  console-data                          2:1.07-11                      keymaps, fonts, charset maps, fallback tables for console-tool
ii  console-terminus                      4.26-2.1                       Fixed-width fonts for fast reading on the Linux console
ii  console-tools                         1:0.2.3dbs-65.1                Linux console and font utilities
ii  defoma                                0.11.10-0.2                    Debian Font Manager -- automatic font configuration framework
ii  fontconfig                            2.6.0-3                        generic font configuration library - support binaries
ii  fontconfig-config                     2.6.0-3                        generic font configuration library - configuration
ii  fontforge                             0.0.20080429-1                 Font editor for PS, TrueType and OpenType fonts
ii  fonty-rg                              0.5                            Linux console fonts in various encodings
ii  gsfonts                               1:8.11+urwcyr1.0.7~pre44-3     Fonts for the Ghostscript interpreter(s)
ii  gsfonts-x11                           0.21                           Make Ghostscript fonts available to X11
ii  libconsole                            1:0.2.3dbs-65.1                Shared libraries for Linux console and font manipulation
ii  libfontconfig1                        2.6.0-3                        generic font configuration library - runtime
ii  libfontconfig1-dev                    2.6.0-3                        generic font configuration library - development
ii  libfontenc1                           1:1.0.4-3                      X11 font encoding library
ii  libfreetype6                          2.3.7-2+lenny1                 FreeType 2 font engine, shared library files
ii  libfreetype6-dev                      2.3.7-2+lenny1                 FreeType 2 font engine, development files
ii  libxfont1                             1:1.3.3-1                      X11 font rasterisation library
ii  libxft-dev                            2.1.12-3                       FreeType-based font drawing library for X (development files)
ii  libxft2                               2.1.12-3                       FreeType-based font drawing library for X
ii  psfontmgr                             0.11.10-0.2                    PostScript font manager -- part of Defoma, Debian Font Manager
ii  ttf-dejavu-core                       2.25-3                         Vera font family derivate with additional characters
ii  ttf-dejavu-extra                      2.25-3                         Vera font family derivate with additional characters
ii  ttf-dustin                            20030517-6                     Various TrueType fonts from dustismo.com
ii  ttf-freefont                          20080323-3                     Freefont Serif, Sans and Mono Truetype fonts
ii  ttf-liberation                        1.04.93-1                      Free fonts with the same metrics as Times, Arial and Courier
ii  ttf-mscorefonts-installer             2.7                            Installer for Microsoft TrueType core fonts
ii  ttf-unifont                           1:5.1.20080914-1               TrueType version of the GNU Unifont
ii  ttf-weather                           1.0-2                          Weather font
ii  unifont                               1:5.1.20080914-1               font with a glyph for each visible Unicode 5.1 Plane 0 charact
ii  unifont-bin                           1:5.1.20080914-1               utilities for manipulating the GNU Unifont
ii  x-ttcidfont-conf                      31                             TrueType and CID fonts configuration for X
ii  x11-xfs-utils                         7.3+1                          X font server utilities
ii  x11proto-fonts-dev                    2.0.2-6                        X11 font extension wire protocol
ii  xfonts-100dpi                         1:1.0.0-4                      100 dpi fonts for X
ii  xfonts-100dpi-transcoded              1:1.0.0-4                      100 dpi fonts for X (transcoded from ISO 10646-1)
ii  xfonts-75dpi                          1:1.0.0-4                      75 dpi fonts for X
ii  xfonts-75dpi-transcoded               1:1.0.0-4                      75 dpi fonts for X (transcoded from ISO 10646-1)
ii  xfonts-base                           1:1.0.0-5                      standard fonts for X
ii  xfonts-biznet-100dpi                  3.0.0-19                       100 dpi BIZNET ISO-8859-2 fonts for X servers
ii  xfonts-biznet-75dpi                   3.0.0-19                       75 dpi BIZNET ISO-8859-2 fonts for X servers
ii  xfonts-biznet-base                    3.0.0-19                       Standard BIZNET ISO-8859-2 fonts for X servers
ii  xfonts-cyrillic                       1:1.0.0-6                      Cyrillic fonts for X
ii  xfonts-encodings                      1:1.0.2-3                      Encodings for X.Org fonts
ii  xfonts-intl-european                  1.2.1-6                        International fonts for X -- European
ii  xfonts-nexus                          0.0.2-14                       Nexus font for X
ii  xfonts-scalable                       1:1.0.0-6                      scalable fonts for X
ii  xfonts-terminus                       4.26-2.1                       Fixed-width fonts for fast reading
ii  xfonts-terminus-dos                   4.26-2.1                       Fixed-width fonts for DOS encodings
ii  xfonts-terminus-oblique               4.26-2.1                       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.4+1                        X Window System font utility programs

: 05 sierpnia 2009, 21:43
autor: T4ng10r
Generalnie mamy jakąś tam zgodność.
Co proponujesz dalej?

: 05 sierpnia 2009, 22:00
autor: fnmirk
T4ng10r pisze:Generalnie mamy jakąś tam zgodność.
Nie mamy zgodności, ponieważ u Ciebie nie ma wszystkich plików z czcionkami. I to tych dość istotnych. Zarówno potrzebnych do pracy w czystym terminalu, jak i w terminalu w środowisku graficznym.

Najlepiej doinstaluj to czego brakuje.