Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Mar 2013 14:19:06 +0200
From:      Vitaly Magerya <vmagerya@gmail.com>
To:        Daniel Nebdal <dnebdal@gmail.com>
Cc:        ports@freebsd.org, Baptiste Daroussin <bapt@freebsd.org>
Subject:   Re: [CFT] New dialog for ports
Message-ID:  <5149A93A.3000909@gmail.com>
In-Reply-To: <CA%2Bt49P%2BU9q%2B06nFbEox876ou4vzLEJO1S3_Ui9w3beCgs%2BO_4Q@mail.gmail.com>
References:  <20130314095529.GH53963@ithaqua.etoilebsd.net> <CA%2Bt49P%2BU9q%2B06nFbEox876ou4vzLEJO1S3_Ui9w3beCgs%2BO_4Q@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5149A93A.3000909>