bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ncurses garbled characters redux


From: Rich Burridge
Subject: Re: ncurses garbled characters redux
Date: Tue, 29 Aug 2017 17:49:04 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

On 08/29/2017 05:40 PM, Rich Burridge wrote:
On 08/29/2017 05:20 PM, Thomas Dickey wrote:
On Tue, Aug 29, 2017 at 01:36:48PM -0700, Rich Burridge wrote:
Hi all,

We have a weird one. This is on Solaris with ncurses version 6.0-20170708
(with --with-abi-version=5 ;-) ), and Python 2.7.13.

We are seeing "garbage characters" when running the Solaris text installer
on a physical console (either directly on bare metal or with something
like the VirtualBox console). See the attached image.
Sun's hardware console doesn't behave the same as xterm or vt100.
I'd expect $TERM to be either "sun" or "sun-color" for that.

(A while back, Sun got in the habit of setting $TERM for their installer,
so that it would't run properly on the console, apparently assuming that
it was run on an attached serial terminal).

For what it's worth, the terminal description for "sun" does not
mention line-drawing.  (It's been quite a while since I looked at
Sun's documentation, but I probably wouldn't have overlooked that).

Also, it didn't do UTF-8.

In Unicode, ACS_HLINE would be U+2500, and the character you're showing
is (in ISO-8859-1) 226, or octal 342.

The UTF-8 for U+2500 is

	\342\224\200

So... it seems you're displaying UTF-8 on a device that supports ISO-8859-1.


...

When I did the first Solaris update to ncurses a little while ago
to 6.0-20170408, we were previously at version 5.7 (from November 2008).

At that time I took out the following from our build process:

# XXX: Ugly hack copied directly from the desktop SUNWncurses.spec file:
# The sun-color terminfo included in ncurses does not work;
# copying the one shipped with Sun's curses fixes it:
COMPONENT_POST_INSTALL_ACTION += \
       $(CP) /usr/share/lib/terminfo/s/sun-color \
       $(PROTO_DIR)$(GNUSHARE)/terminfo/s/;

Now I don't believe that's true any more (and hasn't been for years),
because looking at the ncurses change log, it looks like Laca (Lazslo)
Peter sent sun-color changes "upstream" back in 2009.

The other thing that might be relevant here is the difference between
how the old and the new versions of ncurses is configured.

With the old version 5.7 one, it was with:

CONFIGURE_OPTIONS +=    --with-shared
CONFIGURE_OPTIONS +=    --with-normal
CONFIGURE_OPTIONS +=    --enable-rpath
CONFIGURE_OPTIONS +=    --enable-widec
CONFIGURE_OPTIONS +=    --includedir=$(USRINCDIR)/ncurses
CONFIGURE_OPTIONS +=    --with-default-terminfo-dir=$(GNUSHARE)/terminfo

With the updated one (now building version 6.0-20170708) it's now with:

CONFIGURE_OPTIONS +=    --with-shared
CONFIGURE_OPTIONS +=    --with-abi-version=5
CONFIGURE_OPTIONS +=    --with-normal
CONFIGURE_OPTIONS +=    --enable-rpath
CONFIGURE_OPTIONS +=    --enable-widec
CONFIGURE_OPTIONS +=    --enable-symlinks
CONFIGURE_OPTIONS +=    --includedir=$(USRINCDIR)/ncurses
CONFIGURE_OPTIONS +=    --with-default-terminfo-dir=$(GNUSHARE)/terminfo


Is there anything there I should be adding or removing to the new
configuration, to try to achieve parity with what we had with the
old version?

Thanks.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]