From owner-freebsd-ports@FreeBSD.ORG Wed Mar 20 18:47:00 2013 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B464B6E; Wed, 20 Mar 2013 18:47:00 +0000 (UTC) (envelope-from dnebdal@gmail.com) Received: from mail-bk0-x22b.google.com (mail-bk0-x22b.google.com [IPv6:2a00:1450:4008:c01::22b]) by mx1.freebsd.org (Postfix) with ESMTP id 1FF55D9C; Wed, 20 Mar 2013 18:46:59 +0000 (UTC) Received: by mail-bk0-f43.google.com with SMTP id jm19so1068635bkc.30 for ; Wed, 20 Mar 2013 11:46:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=IDx7UFBYW4jdjKODnnS1g/fVf3N2Cs51h6LlhUeD520=; b=kqIwH58Ac7ChHUktQPBYoyiYoMkeU2j1Mm3P4qLaMmnVPUsq/yzn+YmJr8+LqhItfo vyJqB1P/ZwnFV2YHX7fj9GkZkJePZ22oYvRuTkVzuYJXANO1LaNoKVKdJ3J1olMI09Oi aVTW8ZAVvfTHQTpygcidkJhW32yOx8eKHFCbLQG9RpbHTrHmFFn7lRGZh8JZRJmkXgKI v7hUUderxf5nu4rR8NWf/cVOLxaQwo/H6aG/uyTI8P9X5ZGE3rvEkdSbsKsJ1qW8m37G EIHfhcwb6auGwsb9/eLaLSUI53tR5H+4mRU1uY2wLJ94UsyfI9FUBmNWQV+96Mg7ReU2 4uHw== MIME-Version: 1.0 X-Received: by 10.204.243.3 with SMTP id lk3mr11575264bkb.38.1363805219182; Wed, 20 Mar 2013 11:46:59 -0700 (PDT) Received: by 10.204.229.142 with HTTP; Wed, 20 Mar 2013 11:46:58 -0700 (PDT) In-Reply-To: <5149A93A.3000909@gmail.com> References: <20130314095529.GH53963@ithaqua.etoilebsd.net> <5149A93A.3000909@gmail.com> Date: Wed, 20 Mar 2013 19:46:58 +0100 Message-ID: Subject: Re: [CFT] New dialog for ports From: Daniel Nebdal To: Vitaly Magerya Content-Type: text/plain; charset=ISO-8859-1 Cc: ports@freebsd.org, Baptiste Daroussin X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Mar 2013 18:47:00 -0000 On Wed, Mar 20, 2013 at 1:19 PM, Vitaly Magerya wrote: > Daniel Nebdal wrote: >> I just found a niggle: >> I have LANG=en_US.UTF-8 , NCURSES_NO_UTF8_ACS=1, TERM=xterm, and I'm >> using putty to connect to a FreeBSD-10 machine running a snapshot from >> february with ports from an hour ago. Putty is set to Translation: >> UTF-8, and "use unicode line drawing code points". >> >> With those settings, dialog gives me nice line drawing characters (for >> some reason). If I unset NCURSES_NO_UTF8_ACS, all boxes are drawn >> using random letters instead. (jlmqx, to be exact.) > > They're not actually random; 'jlmqx' is the ASCII rendering of line > drawing characters in ACS (alternative charset), which putty doesn't > support in UTF-8 mode (therefore it shows the ASCII, not the ASC versions). > >> The problem: ports config dialogs are _always_ drawn with the same >> random letters, and I haven't found any setting or combination of >> settings that works. >> >> This is probably more of a mis-configuration on my side > > I'm seeing the same thing too. > > I think I've found what causes it: unlike dialog, dialog4ports does not > call setlocale(3) during startup. Try saving the attached patch as > 'ports-mgmt/dialog4ports/files/patch-dialog4ports.c' and reinstalling > dialog4ports; report back if it'll help. That works perfectly - thanks.