Bug#514933: rolo: Columns displayed wrongly in UTF-8

2009-02-13 Thread Rafael Laboissiere
* Carsten Hey [2009-02-13 10:50]: > Hmm, indeed that's a problem. Maybe printing one field, moving the > cursor to the beginning of the next column (e.g. using move() from > ncurses), printing the next field ... would do what we want. This would imply too many changes to the current code. I thi

Bug#514933: rolo: Columns displayed wrongly in UTF-8

2009-02-13 Thread Carsten Hey
On Fri, Feb 13, 2009 at 10:18:07AM +0100, Rafael Laboissiere wrote: > It happens that the problem with the column display has nothing to do with > ncurses, but with sprintf. Each line in the index screen is produced with a > code in src/entry.c that is roughly like this: > >sprintf (menu_name,

Bug#514933: rolo: Columns displayed wrongly in UTF-8

2009-02-13 Thread Rafael Laboissiere
* Carsten Hey [2009-02-11 23:36]: > Correctly displaying columns when using double wide characters (e.g. タ) will > not work when g_utf8_strlen(str, -1) or mbstowcs(NULL, str, 0) is used since > they return the number of characters instead of the number of columns needed > to > display a string.