Description of problem:
Anaconda's progress window just cuts some strings to 70 bytes, which may result
in bad things when they are UTF-8 characters that take two or more bytes
(resulting in the character getting cut in the middle and weird pango warnings).
Also, in languages where letters are joined (like those using the Arabic or
Indic scripts), getting the string broken in a random place is not the best
option, as weird results may appear to the user.
Instead of a very rough estimate, it should use pango's elipsize support.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Try to start anaconda in a language that doesn't use the Latin script, like
2. Proceed until the package installation progress screen.
The strings get cut in bad places, and there are a lot of pango warnings on Alt-F1
Better cutting, and dots at the end if the string is too long.
FarsiWeb's internal reference:
farsiweb #170, anaconda-badcut.patch, originally reported by Elnaz Sarbar, patch
by Roozbeh Pournader
Created attachment 129148 [details]
Patch to fix the problem
Committed... thanks for the patch!