<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - unaligned display in UTF-8 locales"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=90025">90025</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>unaligned display in UTF-8 locales
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>systemd
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>zdzichu@irc.pl
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>