From owner-freebsd-current@FreeBSD.ORG Wed Jun 16 16:30:37 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B835A106566C for ; Wed, 16 Jun 2010 16:30:37 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id 76DD58FC18 for ; Wed, 16 Jun 2010 16:30:37 +0000 (UTC) Received: from ncsd.bris.ac.uk ([137.222.10.59] helo=ncs.bris.ac.uk) by dirg.bris.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1OOvVb-0003Q1-VL; Wed, 16 Jun 2010 17:30:36 +0100 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncs.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1OOvVb-0005jQ-L4; Wed, 16 Jun 2010 17:30:35 +0100 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4) with ESMTP id o5GGUZPI045211; Wed, 16 Jun 2010 17:30:35 +0100 (BST) (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.4/Submit) id o5GGUZ0f045207; Wed, 16 Jun 2010 17:30:35 +0100 (BST) (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Wed, 16 Jun 2010 17:30:35 +0100 From: Anton Shterenlikht To: Ed Schouten Message-ID: <20100616163035.GA42606@mech-cluster241.men.bris.ac.uk> References: <20100616131503.GA77642@mech-cluster241.men.bris.ac.uk> <20100616134530.GX1797@hoeg.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100616134530.GX1797@hoeg.nl> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-current@freebsd.org, Anton Shterenlikht Subject: Re: how to set up UTF8 russian in -current? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jun 2010 16:30:37 -0000 On Wed, Jun 16, 2010 at 03:45:30PM +0200, Ed Schouten wrote: > * Anton Shterenlikht wrote: > > My system is amd64 r209195. > > > > I was wondering if the user localisation > > section of the handbook is a bit out of date: > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/using-localization.html > > > > The handbook suggests using cons25r, whereas > > the default console type in /etc/ttys is now xterm. > > And keeping cons25r together with relevant fonts, > > screenmap and keymap in /etc/rc.conf doesn't seem > > to work anymore. > > > > Also, the latest I can find on UTF8 in FreeBSD > > is this thread: > > http://lists.freebsd.org/pipermail/freebsd-current/2009-July/009349.html > > > > I tried to follow the advice given in this thread, > > namely I've rebuilt the kernel with TEKEN_UTF8 > > (it seems the other option mentioned, TEKEN_XTERM, is no > > longer valid), and set LC_CTYPE=ru_RU.UTF-8 > > in my shell. This didn't seem to have any effect. > > Even though UTF-8 support for the console is closer than it used to be, > it's still not useful in practice, since syscons won't display it. I > guess if you want to get Russian working on HEAD, you should do the > following: > > - Don't set TEKEN_* in your kernel configuration file. > - Just use the xterm terminal type in /etc/ttys. > - Set LC_CTYPE=ru_RU.{CP1251,CP866,ISO8859-5,KOI8-R}. > - Load a font for Syscons which uses the same character as the one you > chose above. > > So this means 8-bit character sets is the best thing we can do right > now. Yes, this works fine. I guess TEKEN_* in the kernel broke it. However, russian in xterm is still not working. This is probably my misconfiguration.. many thanks for your help anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423