From owner-freebsd-questions@FreeBSD.ORG Thu Feb 16 17:05:51 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCA5F16A420 for ; Thu, 16 Feb 2006 17:05:51 +0000 (GMT) (envelope-from jeramey@jeramey.com) Received: from mout.perfora.net (mout.perfora.net [217.160.230.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FEF643D45 for ; Thu, 16 Feb 2006 17:05:51 +0000 (GMT) (envelope-from jeramey@jeramey.com) Received: from [216.254.25.46] (helo=hedorah.dootplex.com) by mrelay.perfora.net (node=mrelayus1) with ESMTP (Nemesis), id 0MKp2t-1F9mZf1BQG-0002zQ; Thu, 16 Feb 2006 12:05:50 -0500 Received: by hedorah.dootplex.com (sSMTP sendmail emulation); Thu, 16 Feb 2006 09:06:04 -0800 Date: Thu, 16 Feb 2006 09:06:04 -0800 From: Jeramey Crawford To: freebsd-questions@freebsd.org Message-ID: <20060216170604.GA49643@hedorah.dootplex.com> References: <20060216061557.GA39302@hedorah.dootplex.com> <17396.33848.576954.756348@jerusalem.litteratus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17396.33848.576954.756348@jerusalem.litteratus.org> User-Agent: Mutt/1.5.11 X-Provags-ID: perfora.net abuse@perfora.net login:d6865874376fe600ddf639a6e87bbafa Subject: Re: UTF-8 locales and display corruption 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, 16 Feb 2006 17:05:51 -0000 On Thu, Feb 16, 2006 at 08:55:04AM -0500, Robert Huff wrote: > > If I should set my LANG environment variable to "en_US.UTF-8", > > many terminal applications which link to and use ncurses begin to > > have various degrees of display corruption. Does anyone know how > > to fix this, or what the cause is? > > Not familiar with the details, but have you recompiled the > offenders? Yes, several times. I've tried compiling mutt-devel from the port using each of the WITH_MUTT_SLANG and WITH_MUTT_NCURSES options, and both suffer from similar display problems. Typically the display problem in all apps is that any line which contains a multibyte character will have any colors or highlighting misapplied, with either the painted area being too short or too long. In the first case, this will typically lead to parts of the display not being redrawn properly if the app scrolls the text it is displaying since the app will generally try to be lazy and repaint only the parts of the display that need it. In the second case, the highlighted area will often spill into the next line, corrupting it and making it unreadable. It looks kind of like FreeBSD's libncurses doesn't support multibyte characters properly.