bug-ncurses
[Top][All Lists]
Advanced

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

Re: slk_label() doesn't remove trailing blanks


From: Thomas Dickey
Subject: Re: slk_label() doesn't remove trailing blanks
Date: Thu, 19 Apr 2007 15:41:52 -0400 (EDT)

On Thu, 19 Apr 2007, William McBrine wrote:

On Thu, 19 Apr 2007, Alexey Miheev wrote:

According to this standard, upon successful completion, slk_label() returns the requested label with leading and trailing blanks stripped. But in the following example slk_label() returns strings that have unstripped trailing blanks.

I think the real intent of the standard here was that labels not be returned in their padded/justified form, as displayed. But the letter is as you say.

That's what the manpage on Solaris says - but see

http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libcurses/screen/slk_label.c
http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libxcurses/src/libc/xcurses/slk.c

which (ignoring the comment in the former) do not appear to have the
given behavior.  It's not certain whether the documentation is correct,
or the code is wrong (but it's certainly something to check on...).

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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