In a UTF-8 locale with translated messages, multibyte characters causes displacement. This is noticable when running an install or update: For each multibyte character (in the left "box"), the progress bar (in the right "box") moves one step to the left if you compare to a line without any multibyte characters. So depending on the messages, the vertical alignment of progress bar breaks.
Could you paste an example please? Thanks.
LANG=fi_FI.UTF8 pkcon install liferea Simuloidaan asennusta [=========================] Käynnistetään [=========================] Suoritetaan [=========================] Ratkaistaan riippuvuuksia [=========================] Asennetaan [=========================] Odotetaan tunnistautumista [=========================] Käynnistetään [=========================] Suoritetaan [=========================] Ratkaistaan riippuvuuksia [=========================] Ladataan paketteja [=========================] Tarkistetaan allekirjoituksia [=========================] Testataan muutoksia [=========================] Asennetaan paketteja [=========================] Etsitään ohjelmia [=========================] Haetaan tietoja [=========================] It seems to be one step left for each 2 byte character. Another problem is that often, pkcon messages are drawn above previous text instead of on a new row. Wouldn't it be easier to use ncurses to take care of all the alignments?
Another problem with current layout method is that if you run pkcon search and pipe stdout to less, the text looks very different from how it would look in a terminal. The details column even gets lost.
pkcon started out life as a quick hack to test the DBus API. It's kinda evolved into a more general purpose tool, but probably needs some kind of rewrite porting it to something more heavyweight like ncurses. I'm kinda busy with other stuff, but if you want to take on this kind of task I would be willing to help you.
I would like to help, but I don't think I know enough about developing with compiled languages.
We moved the upstream bugtracker to GitHub a long time ago. If this issue still affects you please re-create the issue here: https://github.com/hughsie/PackageKit/issues Sorry for the impersonal message, and fingers crossed your issue no longer happens. Thanks.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.