Bug 70951

Summary: alignment problem with rpm output and LANG=sv_SE.UTF-8
Product: [Retired] Red Hat Public Beta Reporter: Daniel Resare <noa-bugzilla-redhat>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: limbo   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-08-07 08:52:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Daniel Resare 2002-08-07 08:52:09 UTC
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&#65533;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 20:35:03 UTC
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.