Bug 233525 - Floating exception in print_by_column() with unprintable characters
Floating exception in print_by_column() with unprintable characters
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: tcsh (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Vitezslav Crhonek
Bill Huang
Depends On:
  Show dependency treegraph
Reported: 2007-03-22 17:47 EDT by Alasdair Kergon
Modified: 2007-11-30 17:07 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-06-05 16:33:36 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Alasdair Kergon 2007-03-22 17:47:41 EDT
My FC6 shell core-dumped.


Reproduced with RHEL5:

> set autolist
> mkdir tmp
> cd tmp
> touch <^V><^H><^V><^H>

NLSStringWidth(items[i]) returns -1 cast to unsigned int so maxwidth =
4294967295 and wins max() every time;

no_file_suffix is 1 => maxwidth += 1 => maxwidth = 0;

columns = TermH / maxwidth
Comment 1 Vitezslav Crhonek 2007-04-24 08:16:39 EDT

I can't reproduce it:

> set autolist
> mkdir tmp2
> cd tmp2
> touch ^V^H^V^H
> ^V^H^V^H ^V^H^V^H ^V^H^V^H ...

Am I doing something wrong?
Comment 2 Vitezslav Crhonek 2007-04-24 08:18:59 EDT
Now it works, sorry... My fault.
Comment 3 Alasdair Kergon 2007-04-24 10:18:38 EDT
sorry - you need more than one item in the directory for the tabbing to 
display a list of possibilities

add another 'touch xyz'
Comment 5 RHEL Product and Program Management 2007-06-05 16:33:36 EDT
This request was evaluated by Red Hat Product Management for
inclusion in a Red Hat Enterprise Linux release.  Since this
bugzilla is in a component that is not approved for the current
release, it has been closed with resolution deferred.  You may
reopen this bugzilla for consideration in the next release.

Note You need to log in before you can comment on or make changes to this bug.