From owner-freebsd-current@FreeBSD.ORG Tue Jul 14 20:07:05 2009 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 005AD1065672 for ; Tue, 14 Jul 2009 20:07:05 +0000 (UTC) (envelope-from vova@sw.ru) Received: from relay.sw.ru (mailhub.sw.ru [195.214.232.25]) by mx1.freebsd.org (Postfix) with ESMTP id 518118FC1D for ; Tue, 14 Jul 2009 20:07:03 +0000 (UTC) (envelope-from vova@sw.ru) Received: from vbook.fbsd.ru (cdma-92-36-67-95.msk.skylink.ru [92.36.67.95]) (authenticated bits=0) by relay.sw.ru (8.13.4/8.13.4) with ESMTP id n6EJQZeP023661 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 14 Jul 2009 23:26:38 +0400 (MSD) Received: from vova by vbook.fbsd.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1MQne4-0000hy-RG; Tue, 14 Jul 2009 23:26:32 +0400 From: Vladimir Grebenschikov To: Ed Schouten In-Reply-To: <20090714155513.GO48776@hoeg.nl> References: <4A5C9CE2.6060801@free.fr> <20090714155513.GO48776@hoeg.nl> Content-Type: text/plain; charset="KOI8-R" Content-Transfer-Encoding: quoted-printable Date: Tue, 14 Jul 2009 23:26:32 +0400 Message-Id: <1247599592.2232.27.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Cc: freebsd-current@freebsd.org, Franck Royer Subject: Re: UTF-8 on 8.0-CURRENT: Yes We Can! X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vova@fbsd.ru List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2009 20:07:05 -0000 Hi=20 Great news ! This is really long standing improvement. Is it possible to influence mentioned table ?=20 In real life I very rare need parts of UTF-8 other then cyrillic, so for me it should be safe to convert cyrillic characters of UTF-8 to appropriate characters in 8-bit symbols (like CP866). -------- =E9=D3=C8=CF=C4=CE=CF=C5 =D3=CF=CF=C2=DD=C5=CE=C9=C5 -------- =EF=D4: Ed Schouten =EB=CF=CD=D5: Franck Royer =EB=CF=D0=C9=D1: freebsd-current@freebsd.org =F4=C5=CD=C1: UTF-8 on 8.0-CURRENT: Yes We Can! =E4=C1=D4=C1: Tue, 14 Jul 2009 17:55:13 +0200 Hi Franck, * Franck Royer wrote: > I wanna know where is the development of the support of utf-8 locale on > the current branch. Can we use it or it still considering highly > experimental ? Is there any specific port to install or a standard > configuration is enough ? >=20 > Or did I misunderstand that Freebsd will support native utf-8 ? FreeBSD already supports UTF-8 when using X11, etc. The console driver is restricted to 8-bit character sets. When you use FreeBSD HEAD/8.0, you can add the following to your kernel config: options TEKEN_UTF8 options TEKEN_XTERM After that, be sure to replace `cons25' with `xterm' in /etc/ttys. This will allow you to use UTF-8 on the console. The kernel will use a table to remap all Unicode characters to CP437 (the default VGA font), so it's practically useless. I actually wanted to announce this in a couple of days from now, but I guess there's no harm in mentioning it already. As of last week I'm working on a new console driver in the newcons branch in our Perforce repository. Because I'm using VGA graphics mode, it's fairly easy to support Unicode. It will probably still take a very long time before it's finished, but I can already show you this screenshot I made the other day: http://www.il.fontys.nl/~ed/freebsd-vt-unicode.png It's a screenshot of FreeBSD with my console driver, displaying this file: http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-demo.txt I hope you like it. ;-) --=20 Vladimir B. Grebenschikov vova@fbsd.ru