From: Ihar Viarheichyk <i.viarheichyk@sam-solutions.net>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] ssh to host with another LANG
Date: Mon Mar 18 22:29:01 2002
Message-ID: <20020318192003.GA11971@sam-solutions.net> (raw)
In-Reply-To: <20020318124918.05fa2ba2.vyt@vzljot.ru>
On Mon, Mar 18, 2002 at 12:49:18PM +0300, Vyt wrote:
> Hello, All!
>
> Вдохновленный перепиской на тему utf-8 решил снова взяться за
> старую проблему: нужно ходить по ssh с рабочего компа в CP1251 на
> сервер в KOI8-R.
>
> Запускаю следующее:
> ----
> #!/bin/sh
>
> export LANG=ru_RU.KOI8-R
>
> xterm -bg black -cr green -fg grey -C \
> -fn '-misc-fixed-medium-*-*-*-15-*-*-*-*-*-koi8-r' \
> -sl 2000 -e ssh user@server
> ----
Похоже проблема в том, что в ~/.bashrc явно или неявно вызывается
/etc/profile.d/lang.sh, который устанавливает LANG для каждого шелла из
i18n. То есть xterm -bg ... все равно запустится с CP1251.
Если bashrc не сильно менялся по сравнению с дефолтным, то нужно
выбросить строчки
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
--
Igor Vergeichik
ICQ 47298730
next prev parent reply other threads:[~2002-03-18 22:29 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-18 12:48 Vyt
2002-03-18 22:29 ` Ihar Viarheichyk [this message]
2002-03-19 11:24 ` Vyt
2002-03-19 13:00 ` Ihar Viarheichyk
2002-03-19 13:36 ` [mdk-re] " Michael Shigorin
2002-03-19 14:03 ` [mdk-re] Re: zsh Mikhail Zabaluev
2002-03-19 15:35 ` Michael Shigorin
2002-03-20 2:37 ` [mdk-re] Re: [JT] zsh Mikhail Zabaluev
2002-03-20 12:37 ` Michael Shigorin
2002-03-20 6:25 ` [mdk-re] zsh Alexey Morozov
2002-03-20 11:21 ` Michael Shigorin
2002-03-20 11:56 ` Alexey Morozov
2002-03-20 15:34 ` Sergey Vlasov
2002-03-20 17:44 ` S. Budnevitch
2002-03-21 9:58 ` Alexey Morozov
2002-03-20 6:28 ` Alexey Morozov
2002-03-20 20:29 ` Ihar Viarheichyk
2002-03-20 23:10 ` Michael Shigorin
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=20020318192003.GA11971@sam-solutions.net \
--to=i.viarheichyk@sam-solutions.net \
--cc=mandrake-russian@altlinux.ru \
/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
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git