Bug 70951 - alignment problem with rpm output and LANG=sv_SE.UTF-8
alignment problem with rpm output and LANG=sv_SE.UTF-8
Status: CLOSED WONTFIX
Product: Red Hat Public Beta
Classification: Retired
Component: rpm (Show other bugs)
limbo
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Jeff Johnson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-08-07 04:52 EDT by Daniel Resare
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-08-07 04:52:13 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Daniel Resare 2002-08-07 04:52:09 EDT
Description of Problem:

Alignment of the progress bar gets broken by an UTF-8 locale with non-ascii in
the progress bar description, for example sv_SE.UTF-8. An illustration:

[root@ulysses RPMS]# rpm -Uvh cadaver-0.19.1-6.i386.rpm 
Fvrbereder...              ########################################### [100%]
   1:cadaver                ########################################### [100%]
[root@ulysses RPMS]# rpm -e cadaver
[root@ulysses RPMS]# LANG=C rpm -Uvh cadaver-0.19.1-6.i386.rpm 
Preparing...                ########################################### [100%]
   1:cadaver                ########################################### [100%]
[root@ulysses RPMS]# rpm -e cadaver
[root@ulysses RPMS]# LANG=sv_SE.iso-8859-15 rpm -Uvh cadaver-0.19.1-6.i386.rpm 
F�rbereder...               ########################################### [100%]
   1:cadaver                ########################################### [100%]

Using a non UTF-8 locale fixes the problem (exept for the fact that non-ascii
doesn't get printed properly)
Comment 1 Jeff Johnson 2002-08-07 16:35:03 EDT
rpm has not a clue about UTF-8. The translation
could/should be made preserving the length of the
string if necessary. Otherwise the "fix" (if any)
will be to rip hash marks and -h out of rpm entirely.

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