From owner-freebsd-ports@FreeBSD.ORG Wed Mar 20 12:20:47 2013 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id BFB5AE15; Wed, 20 Mar 2013 12:20:47 +0000 (UTC) (envelope-from vmagerya@gmail.com) Received: from mail-la0-x22f.google.com (mail-la0-x22f.google.com [IPv6:2a00:1450:4010:c03::22f]) by mx1.freebsd.org (Postfix) with ESMTP id 1B1CC319; Wed, 20 Mar 2013 12:20:46 +0000 (UTC) Received: by mail-la0-f47.google.com with SMTP id fj20so2783910lab.6 for ; Wed, 20 Mar 2013 05:20:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type; bh=NFkX6bSiNZ9U5yCuYAzOwuEPxc28RcbIiMBWic7ai78=; b=d5X7fjtSOkX/xRYl7gDFHp9QJseM/W2fkrMSPN/LOUUj+DtNikbBqjhuW3U78wT+d9 Y16oHphzVlhXYqQCLGmEV0wjxeRbOihKJJDIGjFMzVci19SzVUOmOiuNSTMWDjGkld6o PqUVIIcen8MjAZfwbb6BSUmACv2pjeFrQo0I7Z5C7NEv2rQ2SXPjsmsm71czRCM2F9lB bQWIpZxgGAd+Z4tgWKuuxg/+cHw6IXlYxH1DUorznQQ0ql+whlm+41B++tsP5hUDCV8W nQH7kSUgesVF0r5oYGcdNdebkJovAZbe/SvGCQA0HouG8mbV9ICy1EMoAMSL72U7GgdQ KlEw== X-Received: by 10.152.104.36 with SMTP id gb4mr5266878lab.13.1363782046104; Wed, 20 Mar 2013 05:20:46 -0700 (PDT) Received: from [172.29.2.131] (195-248-173-117.static.vega-ua.net. [195.248.173.117]) by mx.google.com with ESMTPS id fq10sm475418lbb.14.2013.03.20.05.20.43 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 20 Mar 2013 05:20:45 -0700 (PDT) Message-ID: <5149A93A.3000909@gmail.com> Date: Wed, 20 Mar 2013 14:19:06 +0200 From: Vitaly Magerya User-Agent: Thunderbird MIME-Version: 1.0 To: Daniel Nebdal Subject: Re: [CFT] New dialog for ports References: <20130314095529.GH53963@ithaqua.etoilebsd.net> In-Reply-To: Content-Type: multipart/mixed; boundary="------------070001030902000508020705" 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 12:20:47 -0000 This is a multi-part message in MIME format. --------------070001030902000508020705 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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. --------------070001030902000508020705 Content-Type: text/plain; charset=windows-1251; name="patch-dialog4ports.c" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="patch-dialog4ports.c" LS0tIGRpYWxvZzRwb3J0cy5jLm9yaWcJMjAxMy0wMy0yMCAxNDowNzowOS4wMDAwMDAwMDAg KzAyMDAKKysrIGRpYWxvZzRwb3J0cy5jCTIwMTMtMDMtMjAgMTQ6MDc6NTYuMDAwMDAwMDAw ICswMjAwCkBAIC0zMiw2ICszMiw3IEBACiAjaW5jbHVkZSA8c3RkaW8uaD4KICNpbmNsdWRl IDxzdGRsaWIuaD4KICNpbmNsdWRlIDxzdHJpbmdsaXN0Lmg+CisjaW5jbHVkZSA8bG9jYWxl Lmg+CiAKICNpbmNsdWRlICJtaXhlZGxpc3QuaCIKIApAQCAtMjEzLDYgKzIxNCw3IEBACiAJ Y2hhciAqaGVscGZpbGU7CiAJRElBTE9HX01JWEVETElTVCogaXRlbXM7CiAKKwlzZXRsb2Nh bGUoTENfQUxMLCAiIik7CiAJaW5pdF9kaWFsb2coc3RkaW4sIHN0ZG91dCk7CiAJZXJybm8g PSAwOwogCg== --------------070001030902000508020705--