Date: Fri, 11 Dec 1998 12:28:15 +0100 From: "Alexander N. Kabaev" <kan@sti.cz> To: Igor Lidin <guardian@relis.ru> Cc: current@FreeBSD.ORG, questions@FreeBSD.ORG Subject: Re: xterm input is in cp866, not in koi8-r Message-ID: <367101CF.B8420FF9@sti.cz> References: <002401be24f3$0e58b520$5c987dc1@lightning.relcom.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?367101CF.B8420FF9>