[systemd-bugs] [Bug 90025] New: unaligned display in UTF-8 locales
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Apr 13 23:44:27 PDT 2015
https://bugs.freedesktop.org/show_bug.cgi?id=90025
Bug ID: 90025
Summary: unaligned display in UTF-8 locales
Product: systemd
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: general
Assignee: systemd-bugs at lists.freedesktop.org
Reporter: zdzichu at irc.pl
QA Contact: systemd-bugs at lists.freedesktop.org
I've noticed that systemctl output is not column-aligned in some cases. I'm
using pl_PL.utf-8 locale:
$ systemctl list-timers
NEXT LEFT LAST PASSED
UNIT ACTIVATES
wto 2015-04-14 08:50:09 CEST 14min left wto 2015-04-14 07:50:09 CEST 45min
ago dnf-makecache.timer dnf-makecache.service
śro 2015-04-15 00:00:00 CEST 15h left wto 2015-04-14 00:00:37 CEST 8h ago
yum-cron-security.timer yum-cron-security.service
śro 2015-04-15 08:24:49 CEST 23h left wto 2015-04-14 08:24:49 CEST 10min
ago systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.service
If you use monospace font and wide terminal, you will notice that two last
lines are not aligned. "15h left" and "23h left" are moved single character to
the left. Misalignment is carried on the rest of the columns to the right.
I *think* the cause is the letter "ś" in first character of the line. Probably
multibyte utf-8 character isn't accounted properly.
This issue is not visible in non-utf8 locale:
$ LC_ALL=C systemctl list-timers
NEXT LEFT LAST PASSED
UNIT ACTIVATES
Tue 2015-04-14 08:50:09 CEST 14min left Tue 2015-04-14 07:50:09 CEST 45min
ago dnf-makecache.timer dnf-makecache.service
Wed 2015-04-15 00:00:00 CEST 15h left Tue 2015-04-14 00:00:37 CEST 8h ago
yum-cron-security.timer yum-cron-security.service
Wed 2015-04-15 08:24:49 CEST 23h left Tue 2015-04-14 08:24:49 CEST 10min
ago systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.service
$ systemctl --version; rpm -q systemd
systemd 219
+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP
+GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN
systemd-219-11.fc22.x86_64
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20150414/ec173a04/attachment.html>
More information about the systemd-bugs
mailing list