public inbox for gentoo-user-cs@lists.gentoo.org
 help / color / mirror / Atom feed
From: Pavel Dobes <gentoo@lnx.cz>
To: gentoo-user-cs@lists.gentoo.org
Subject: [gentoo-user-cs] prechod na UTF-8
Date: Mon, 8 Oct 2007 16:34:10 +0200	[thread overview]
Message-ID: <20071008163410.02233539@lnx.cz> (raw)

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



             reply	other threads:[~2007-10-08 14:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-08 14:34 Pavel Dobes [this message]
2007-10-08 15:18 ` [gentoo-user-cs] prechod na UTF-8 Miroslav Puda

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071008163410.02233539@lnx.cz \
    --to=gentoo@lnx.cz \
    --cc=gentoo-user-cs@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox