public inbox for gentoo-user-ru@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alex Efros <powerman@powerman.asdfgroup.com>
To: gentoo-user-ru@lists.gentoo.org
Subject: Re: [gentoo-user-ru] xterm-225 break koi8 paste
Date: Tue, 4 Dec 2007 10:09:21 +0200	[thread overview]
Message-ID: <20071204080921.GU17188@home.power> (raw)
In-Reply-To: <1196754436.22727.10.camel@localhost>

[-- Attachment #1: Type: text/plain, Size: 2089 bytes --]

Hi!

On Tue, Dec 04, 2007 at 10:47:16AM +0300, Peter Volkov wrote:
> В Втр, 04/12/2007 в 09:40 +0200, Alex Efros пишет:
> Покажите вывод locale? Я когда тестировал, то если запустить xterm так:

$ locale
LANG=ru_RU.KOI8-R
LC_CTYPE="ru_RU.KOI8-R"
LC_NUMERIC=POSIX
LC_TIME="ru_RU.KOI8-R"
LC_COLLATE="ru_RU.KOI8-R"
LC_MONETARY="ru_RU.KOI8-R"
LC_MESSAGES="ru_RU.KOI8-R"
LC_PAPER="ru_RU.KOI8-R"
LC_NAME="ru_RU.KOI8-R"
LC_ADDRESS="ru_RU.KOI8-R"
LC_TELEPHONE="ru_RU.KOI8-R"
LC_MEASUREMENT="ru_RU.KOI8-R"
LC_IDENTIFICATION="ru_RU.KOI8-R"
LC_ALL=

> $ LANG=ru_RU.KOI8-R LC_ALL=ru_RU.KOI8-R xterm &
> 
> воспроизводится то, что вы видите, а так:
> 
> $ LANG=ru_RU.KOI8-R LC_ALL=ru_RU.KOI8-R xterm -lc & 
> 
> работает! Может у вас ещё нужно, что-нибудь со шрифтами сделать?
> Создайте текстовый файл в неработающем xterm, где у вас точками
> набирается и прочитайте его чем-нибудь (хоть cat в работающей
> консоли...). Там точки или нормальный текст?

Да, насчёт шрифта идея любопытная. Действительно, если сделать:
$ echo '......' > hi.txt
(при этом набирая по-русски "привет", хотя на экране будут точки)
и просмотреть hi.txt в другой консоли - там будет "привет", а не точки.

В общем, поменял я кодировку шрифта с koi8-r на iso10646-1, и русские
буквы появились. :) Но проблему это не решило, к сожалению:
- Раньше, до всех манипуляций, в xterm-229 у меня ###### вставлялись
  вместо русского при первой попытке. Но если после этого попытку вставки
  повторить - русский вставлялся нормально. Т.е. если выделить слово
  "привет" и три раза нажать Shift+Insert, получалось "######приветпривет".
- Теперь всё наоборот. Первое нажатие Shift+Insert вставляет русский,
  а последующие - вопросики. Получается: "привет????????????". Более того,
  если после этого слово "привет" выделить ещё раз, и снова попробовать
  вставить, то всегда вставляется "######".
Бред, в общем. Ещё идеи есть?

P.S. Я сейчас запускал так:
LANG=ru_RU.KOI8-R LC_ALL=ru_RU.KOI8-R xterm -lc -fn -xos4-terminus-bold-r-normal-*-24-*-*-*-*-*-iso10646-1

-- 
			WBR, Alex.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2007-12-04  8:10 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-03 13:22 [gentoo-user-ru] xterm-225 break koi8 paste Alex Efros
2007-12-03 13:43 ` L29Ah
2007-12-03 13:43   ` L29Ah
2007-12-03 13:55   ` Andrew A. Sabitov
2007-12-03 14:29     ` L29Ah
2007-12-03 18:38       ` Andrew A. Sabitov
2007-12-03 19:07         ` L29Ah
2007-12-03 19:13         ` Azamat H. Hackimov
2007-12-04  6:50         ` Peter Volkov
2007-12-04  7:40           ` Alex Efros
2007-12-04  7:47             ` Peter Volkov
2007-12-04  8:09               ` Alex Efros [this message]
2007-12-04  8:23                 ` Alex Efros
2007-12-04  9:56                   ` Peter Volkov
2007-12-07  9:22                   ` Peter Volkov
2007-12-07 21:28                     ` Alex Efros
2007-12-04  7:51             ` Andrew A. Sabitov
2007-12-04  7:51               ` Andrew A. Sabitov
2007-12-04 10:08             ` Alexander Simonov
2007-12-04 10:17               ` Andrew A. Sabitov
2007-12-04 10:20                 ` Alexander Simonov
2007-12-04 10:35                   ` Andrew A. Sabitov
2007-12-04 10:35                     ` Andrew A. Sabitov
2007-12-04 10:59                     ` Alexander Simonov
2007-12-03 15:52     ` Alex Efros
2008-02-08  9:12 ` Peter Volkov
2008-02-08 18:20   ` Alex Efros

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=20071204080921.GU17188@home.power \
    --to=powerman@powerman.asdfgroup.com \
    --cc=gentoo-user-ru@gentoo.org \
    --cc=gentoo-user-ru@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