Bug 1464745 - Translated table headings don't align
Translated table headings don't align
Status: NEW
Product: Fedora
Classification: Fedora
Component: procps-ng (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Jaromír Cápík
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2017-06-25 07:40 EDT by Göran Uddeborg
Modified: 2017-09-25 17:00 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Göran Uddeborg 2017-06-25 07:40:37 EDT
Description of problem:
While testing a Swedish translation of procps_ng, I noticed the headings don't line up with the tables afterwards.

Version-Release number of selected component (if applicable):

How reproducible:
Every time

Steps to Reproduce:
1. pmap -x $$

Actual results:
Adress             kbyte     RSS   Dirty Läge Mappning
000055fdb05be000     992     904       0 r-x-- bash

Notice that "Mapping" is one place too far to the left.

Expected results:
Adress             kbyte     RSS   Dirty Läge  Mappning
000055fdb05be000     992     904       0 r-x-- bash

Additional info:
I haven't checked, but I suspect the problem is the code assumes the message, "Läge" in this case, takes up as many columns as it contains bytes.   That isn't true when the string contains non-ASCII letters like "ä".  In UTF-8, they use two bytes but still use only one column.
Comment 1 Göran Uddeborg 2017-09-25 17:00:16 EDT
Added upstreams: https://gitlab.com/procps-ng/procps/issues/68

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