From owner-freebsd-questions@FreeBSD.ORG Thu Apr 5 00:21:53 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A84B416A402 for ; Thu, 5 Apr 2007 00:21:53 +0000 (UTC) (envelope-from dickey@saltmine.radix.net) Received: from saltmine.radix.net (saltmine.radix.net [207.192.128.40]) by mx1.freebsd.org (Postfix) with ESMTP id 6F17813C4B7 for ; Thu, 5 Apr 2007 00:21:53 +0000 (UTC) (envelope-from dickey@saltmine.radix.net) Received: from saltmine.radix.net (localhost [127.0.0.1]) by saltmine.radix.net (8.12.2/8.12.2) with ESMTP id l350Lqlj008137; Wed, 4 Apr 2007 20:21:52 -0400 (EDT) Received: (from dickey@localhost) by saltmine.radix.net (8.12.2/8.12.2/Submit) id l350Lqhm008136; Wed, 4 Apr 2007 20:21:52 -0400 (EDT) Date: Wed, 4 Apr 2007 20:21:52 -0400 From: Thomas Dickey To: User Questions Message-ID: <20070405002151.GA6142@saltmine.radix.net> References: <46142064.9090103@skoberne.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pWyiEgJYm5f9v55/" Content-Disposition: inline In-Reply-To: <46142064.9090103@skoberne.net> User-Agent: Mutt/1.3.27i Cc: Nejc =?iso-8859-1?Q?=A9koberne?= Subject: Re: UTF-8 in console X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2007 00:21:53 -0000 --pWyiEgJYm5f9v55/ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 05, 2007 at 12:02:12AM +0200, Nejc =A9koberne wrote: > Hello, >=20 > I am have many FreeBSD 5.x and 6.x servers installed and I have this in my > /etc/profile: >=20 > LANG=3Dsl_SI.UTF-8; export LANG > MM_CHARSET=3DUTF-8; export MM_CHARSET >=20 > because I am using UTF-8 encoding with PuTTY. It works with most=20 > applications > but not with "dialog". For example, I get this when using UTF-8: dialog is probably built/linked with the normal "libncurses" rather than "libncursesw" (and corresponding configure option to use the wide-character features). That's one part of the problem. Another is that PuTTY does not honor VT100-style line-drawing when it's doing UTF-8. You can tell ncurses that's the case by setting the NCURSES_NO_UTF8_ACS environment variable (added 20050312). Then it'll use +'s and -'s, etc., to do ASCII line-drawing. To get nice line-drawing in PuTTY in UTF-8, you have to use the wide-character libncursesw. --=20 Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net --pWyiEgJYm5f9v55/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (SunOS) Comment: For info see http://www.gnupg.org iD8DBQFGFEEYtIqByHxlDocRAnDkAJ9rmq9gLupRPGyxBzKAyfGiWEiqFwCglv25 ah8trB11i6y+YNzrgX8sOhU= =WdqH -----END PGP SIGNATURE----- --pWyiEgJYm5f9v55/--