| Summary: | mail-client/mutt-1.5.23-r5 with sidebar patch incorrectly displays the names of mail folders in UTF-8 console | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Alexandr Darkman <ad.darkman> |
| Component: | Current packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | CC: | ad.darkman |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | AMD64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | fix UTF-8 sidebar folder name display | ||
Created attachment 410760 [details, diff]
fix UTF-8 sidebar folder name display
Looks a lot like a dup of bug 541730. Please try the latest -r8 version first. Thanks. Its works. *** This bug has been marked as a duplicate of bug 541730 *** |
mail-client/mutt-1.5.23-r5 using the sidebar patch in UTF-8 console does not display the first letter in the name of the folder. Reproducible: Always Steps to Reproduce: 1. Run mutt with sidebar patch in any Xorg based terminal ('konsole' for example) with 'LC_ALL=ru_RU.UTF-8' Actual Results: sidebar does not display the first letter in the name of the folder Expected Results: display full folder name Patch: --- a/sidebar.c 2013-07-16 23:10:27.000000000 +0300 +++ b/sidebar.c 2013-07-16 23:15:34.124213818 +0300 @@ -318,7 +318,12 @@ strncat(sidebar_folder_name, tmp_folder_name, strlen(tmp_folder_name) + sidebar_folder_depth); } } - printw( "%.*s", SidebarWidth - delim_len + 1, + /* DO NOT USE this format string - it's incorrect works with multibyte UTF-8 characters. + * ad dot darkman at gmail dot com */ + /*printw( "%.*s", SidebarWidth - delim_len + 1, + make_sidebar_entry(sidebar_folder_name, tmp->msgcount, + tmp->msg_unread, tmp->msg_flagged));*/ + printw( "%s", make_sidebar_entry(sidebar_folder_name, tmp->msgcount, tmp->msg_unread, tmp->msg_flagged)); if (sidebar_folder_depth > 0)