Red Hat Bugzilla – Bug 90201
Tab completion listing counts width of multibyte characters wrong
Last modified: 2007-04-18 12:53:28 EDT
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
The columns of the completion alternatives listing are not lined up, counting
every byte as a distinct coumn.
Columns lined up.
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.
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.
Created attachment 91607 [details]
Script showing the "before" and "after" status
Thanks for the patch. Fixed package will show up in rawhide shortly.