From owner-freebsd-current@FreeBSD.ORG Wed Jul 15 10:52:35 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 8E7A810656DA for ; Wed, 15 Jul 2009 10:52:35 +0000 (UTC) (envelope-from royerfranck@free.fr) Received: from kollok.org (kollok.org [213.251.185.185]) by mx1.freebsd.org (Postfix) with ESMTP id 5822D8FC14 for ; Wed, 15 Jul 2009 10:52:35 +0000 (UTC) (envelope-from royerfranck@free.fr) Received: from [10.7.0.7] (kjade [10.7.0.7]) by kollok.org (Postfix) with ESMTP id ECB0F5E0; Wed, 15 Jul 2009 12:52:33 +0200 (CEST) Message-ID: <4A5DB4F1.9010708@free.fr> Date: Wed, 15 Jul 2009 12:52:33 +0200 From: Franck Royer User-Agent: Thunderbird 2.0.0.22 (X11/20090608) MIME-Version: 1.0 To: Ed Schouten References: <4A5C9CE2.6060801@free.fr> <20090714155513.GO48776@hoeg.nl> In-Reply-To: <20090714155513.GO48776@hoeg.nl> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-current@freebsd.org 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: royerfranck@free.fr List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2009 10:52:36 -0000 Ed Schouten a écrit : > 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 ? >> >> 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. ;-) > > Oh yes, wonderful. Sorry, but I have a lack of knowledge in this field. My Freebsd is only used as a server I access to by ssh. So if I had these options to the kernel and put my locale in utf8 it would work ok ?