public inbox for gentoo-user-cs@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user-cs] prechod na UTF-8
@ 2007-10-08 14:34 Pavel Dobes
  2007-10-08 15:18 ` Miroslav Puda
  0 siblings, 1 reply; 2+ messages in thread
From: Pavel Dobes @ 2007-10-08 14:34 UTC (permalink / raw
  To: gentoo-user-cs

Zdravim,

kdyz jsem preinstalovaval system, tak jsem si rikla, ze bych mohl rovnoou prejit na utf8.

Tak nejak mi to vsecho funguje, ale stale jsem si jeste nechal locale i pro iso-8859-2

Pripojuji se vsak na nejkoli serveru, ktere bezi v latin2. Mylsel jsem, ze kdyz spustim terminal s nastavenim fontu na iso a zmenim locale na iso, ze to bude fungovat, ale nefunguje.

V /etc/locale.gen mam

en_US ISO-8859-1
en_US.UTF-8 UTF-8
cs_CZ ISO-8859-2
cs_CZ.UTF-8 UTF-8

Kdyz spustim v xtermu cal, tak to funguje:

$ cal
     říjen 2007     
Po Út St Čt Pá So Ne
 1  2  3  4  5  6  7
 8  9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31

$ locale
LANG=cs_CZ.UTF-8
LC_CTYPE="cs_CZ.UTF-8"
LC_NUMERIC="cs_CZ.UTF-8"
LC_TIME="cs_CZ.UTF-8"
LC_COLLATE=C
LC_MONETARY="cs_CZ.UTF-8"
LC_MESSAGES="cs_CZ.UTF-8"
LC_PAPER="cs_CZ.UTF-8"
LC_NAME="cs_CZ.UTF-8"
LC_ADDRESS="cs_CZ.UTF-8"
LC_TELEPHONE="cs_CZ.UTF-8
LC_MEASUREMENT="cs_CZ.UTF-8"
LC_IDENTIFICATION="cs_CZ.UTF-8"
LC_ALL=

Kdyz spustim xterm s iso fontama 

$xterm -fb '-misc-fixed-bold-r-normal--12-120-75-75-c-0-iso8859-2' -fn '-misc-fixed-medium-r-normal--12-120-75-75-c-0-iso8859-2' -sb 

a v nem cal, tak

$ cal
      íjen 2007     
Po Út St  t Pá So Ne
 1  2  3  4  5  6  7
 8  9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31

Nezobrazuji se znaky, ale jde to (pri prekopirovani se znaky zase objevi). Locale je stale cs_CZ.UTF-8. Kdyz to zmenim na cs_CZ, cimz bych imho mel dostat vystupy v iso latin 2 a vse by melo fungovat, tak:

$ export LANG="cs_CZ"
$ locale
LANG=cs_CZ
LC_CTYPE="cs_CZ"
LC_NUMERIC="cs_CZ"
LC_TIME="cs_CZ"
LC_COLLATE=C
LC_MONETARY="cs_CZ"
LC_MESSAGES="cs_CZ"
LC_PAPER="cs_CZ"
LC_NAME="cs_CZ"
LC_ADDRESS="cs_CZ"
LC_TELEPHONE="cs_CZ"
LC_MEASUREMENT="cs_CZ"
LC_IDENTIFICATION="cs_CZ"
LC_ALL=

Ale cal nezobrazuje :-(
$ cal
      jen 2007     
Po   St   P So Ne
 1  2  3  4  5  6  7
 8  9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31

a chybejici znaky jsou nahrazeny pri kopirovani nejakyma otaznikama, pricemz se to snazi reprezentovat jako jeden znak 2bajty.

     �jen 2007     
Po � St � P�So Ne

Kde je chyba? Je to chyba logicka? Takto prehazovat kodovani nejde a
nebo jak to s tim kodovanim je? Jak se mam pripojovat, abych mohl normalne pracovat v prostredi iso latin 2.

PaD
--
gentoo-user-cs@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-10-08 15:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-08 14:34 [gentoo-user-cs] prechod na UTF-8 Pavel Dobes
2007-10-08 15:18 ` Miroslav Puda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox