Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 233525

Summary: Floating exception in print_by_column() with unprintable characters
Product: Red Hat Enterprise Linux 5 Reporter: Alasdair Kergon <agk>
Component: tcshAssignee: Vitezslav Crhonek <vcrhonek>
Status: CLOSED DEFERRED QA Contact: Bill Huang <bhuang>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.0CC: bmr
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-06-05 20:33:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Alasdair Kergon 2007-03-22 21:47:41 UTC
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 12:16:39 UTC

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 12:18:59 UTC
Now it works, sorry... My fault.

Comment 3 Alasdair Kergon 2007-04-24 14:18:38 UTC
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 20:33:36 UTC
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.