Bug 90201 - Tab completion listing counts width of multibyte characters wrong
Summary: Tab completion listing counts width of multibyte characters wrong
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: bash   
(Show other bugs)
Version: 9
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Ben Levenson
Depends On:
TreeView+ depends on / blocked
Reported: 2003-05-05 11:52 UTC by Miloslav Trmac
Modified: 2007-04-18 16:53 UTC (History)
0 users

Fixed In Version: 2.05b-24
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-05-12 10:07:56 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch fixing the problem (4.12 KB, patch)
2003-05-11 15:23 UTC, Miloslav Trmac
no flags Details | Diff
Script showing the "before" and "after" status (1.26 KB, application/octet-stream)
2003-05-11 15:24 UTC, Miloslav Trmac
no flags Details

Description Miloslav Trmac 2003-05-05 11:52:47 UTC
Version-Release number of selected component (if applicable):

Steps to Reproduce:
1.Using UTF-8, create files with non-ASCII characters in names in a directory
2.In that directory, type "ls " and press Tab twice
Actual results:
The columns of the completion alternatives listing are not lined up, counting
every byte as a distinct coumn.

Expected results:
Columns lined up.

Comment 1 Tim Waugh 2003-05-06 13:11:16 UTC
Please attach a script that does this, so we both know we're looking at the same
failure.  Sometimes there are several problems with similar symptoms.

Comment 2 Miloslav Trmac 2003-05-11 15:23:18 UTC
Created attachment 91606 [details]
Patch fixing the problem

This patch fixes the problem.
As an added bonus, it should also fix the column counting
when the file names contain control characters
(which are ^C -like escaped in the output).
I'll send this upstream in a few minutes.

Comment 3 Miloslav Trmac 2003-05-11 15:24:20 UTC
Created attachment 91607 [details]
Script showing the "before" and "after" status

Comment 4 Tim Waugh 2003-05-12 10:07:56 UTC
Thanks for the patch.  Fixed package will show up in rawhide shortly.

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