From owner-freebsd-current Fri Dec 11 03:27:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA21364 for freebsd-current-outgoing; Fri, 11 Dec 1998 03:27:16 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from lenka.ph.ipex.cz (lenka.ph.ipex.cz [62.168.16.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA21352; Fri, 11 Dec 1998 03:27:11 -0800 (PST) (envelope-from kan@sti.cz) Received: from linux.sti.cz (linux.sti.cz [62.168.16.129]) by lenka.ph.ipex.cz (8.8.5/IPEX) with ESMTP id MAA25012; Fri, 11 Dec 1998 12:27:01 +0100 Received: from sti.cz (kan.sti.cz [192.168.0.18]) by linux.sti.cz (8.8.7/8.7.3) with ESMTP id NAA00498; Fri, 11 Dec 1998 13:32:03 +0100 Message-ID: <367101CF.B8420FF9@sti.cz> Date: Fri, 11 Dec 1998 12:28:15 +0100 From: "Alexander N. Kabaev" X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 3.0-CURRENT i386) X-Accept-Language: ru, en MIME-Version: 1.0 To: Igor Lidin CC: current@FreeBSD.ORG, questions@FreeBSD.ORG Subject: Re: xterm input is in cp866, not in koi8-r References: <002401be24f3$0e58b520$5c987dc1@lightning.relcom.ru> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I looked into this problem and found out that XFree86 3.3.3 introduced a bug in their XmbLookupText function. I found the cause of the problem and sent a bug report along with patch to XFree86. We'll see if it will have any effect :) In the meantime, you could put the following patch in your /usr/ports/x11/XFree86/patches directory and recompile XFree86 port. This patch works perfectly for me. --- lib/X11/imConv.c Sat Oct 24 09:50:13 1998 +++ lib/X11/imConv.c.new Thu Dec 3 18:20:07 1998 @@ -429,7 +429,7 @@ #endif {sUTF8, "utf8", "\033%B"}, /* Non-standard */ - {sCyrillic, "KOI8-R", "\033%/1\200\210koi8-r\002"}, + {sKoi8, "KOI8-R", "\033%/1\200\210koi8-r\002"}, {sLatin9, "ISO8859-15", "\033%/1\200\213iso8859-15\002"},/* a.k.a. Latin-0 */ }; It would be also perfect if someone with appropriate rights will commit this patch into FreeBSD ports repository until official patch will appear from XFree86. Hope, this will help. Alexander Kabaev, kan@sti.cz Igor Lidin wrote: > Can anyone help me? > > Environment: > FreeBSD 3.0-Current as of 1 Dec 1998 > XFree86 3.3.3 built from ports collection as of 4 Dec 1998 > /ports/russian/X.language port installed > > I have LANG and MM_CHARSET environment variables > set to ru_RU.KOI8-R. Russian fonts are first in my FontPath. > > This is a part of my XF86Config: > Section "Keyboard" > Protocol "Standard" > AutoRepeat 500 30 > LeftAlt Meta > RightAlt Meta > ScrollLock Compose > RightCtl Control > XkbKeycodes "xfree86" > XkbTypes "default" > XkbCompat "default" > XkbSymbols "us(pc105)+ru" > XkbGeometry "pc(pc105)" > XkbRules "xfree86" > XkbModel "pc105" > XkbLayout "ru" > XkbOptions "" > XkbKeymap "xfree86(ru)" > EndSection > > Russian keyboard switching via Caps-Lock works well in > WindowMaker Conf, Netscape, others, but not in XTerm. > When I switch kbd with caps-lock to russian mode in xterm > it appears that input is going in CP866 codepage, but not > in KOI8-R, as it should be. > > Can anyone help me or point me to information about this > problem? > > p.s. > Please CC your replies to guardian@relis.ru > > Thanks, > Igor Lidin, guardian@relis.ru > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message