Skip to contentSkip to conversation

Wrong alignment when listing user/login with semanage in French

DISCUSSION Laurent Bigonville 2 participants 3 messages Jan 14, 2017 – Jan 18, 2017 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hi,

Not sure I already posted this on the ML.

When listing the user/login with semanage (login/user -l) in French (and probably in other languages as well), the columns headers are not properly aligned.

This makes it sometimes difficult to read the output(and it's ugly), see: https://i.imgur.com/zhZkebc.png

Some of the translations should maybe be fixed in this case to make them shorter, but the alignment should probably be dynamic.

RHEL/Fedora[1] contains the python binding for libsmartcols, maybe this could be used to do the formating?

Regards,

Laurent Bigonvlle

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1369558

#1 lore raw
Quoted 12 lines · Laurent Bigonville

Hi,

Not sure I already posted this on the ML.

When listing the user/login with semanage (login/user -l) in French (and
probably in other languages as well), the columns headers are not properly aligned.

This makes it sometimes difficult to read the output(and it's ugly),
see: https://i.imgur.com/zhZkebc.png

Quoted 7 lines

Some of the translations should maybe be fixed in this case to make them
shorter, but the alignment should probably be dynamic.

RHEL/Fedora[1] contains the python binding for libsmartcols, maybe this
could be used to do the formating?

Not sure.  Is it readily available in other distributions and in OpenEmbedded?

Quoted 6 lines

Regards,

Laurent Bigonvlle

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1369558

#2 lore raw
Quoted 17 lines · Stephen Smalley
Quoted 16 lines · Laurent Bigonville

Hi,

Not sure I already posted this on the ML.

When listing the user/login with semanage (login/user -l) in French (and
probably in other languages as well), the columns headers are not properly aligned.

This makes it sometimes difficult to read the output(and it's ugly),
see: https://i.imgur.com/zhZkebc.png

Some of the translations should maybe be fixed in this case to make them
shorter, but the alignment should probably be dynamic.

Quoted 5 lines
Quoted 3 lines

RHEL/Fedora[1] contains the python binding for libsmartcols, maybe this
could be used to do the formating?

Not sure. Is it readily available in other distributions and in OpenEmbedded?

It's not in Debian (or Ubuntu) yet but I could package it for the next cycle. libsmartcols itself is part of util-linux.

For OpenEmbedded I don't know.