Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 559336 - mail-client/mutt-1.5.23-r5 with sidebar patch incorrectly displays the names of mail folders in UTF-8 console
Summary: mail-client/mutt-1.5.23-r5 with sidebar patch incorrectly displays the names ...
Status: RESOLVED DUPLICATE of bug 541730
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-01 13:50 UTC by Alexandr Darkman
Modified: 2015-09-10 00:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fix UTF-8 sidebar folder name display (sidebar-utf8-printw.patch,723 bytes, patch)
2015-09-01 13:51 UTC, Alexandr Darkman
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Darkman 2015-09-01 13:50:05 UTC
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)
Comment 1 Alexandr Darkman 2015-09-01 13:51:39 UTC
Created attachment 410760 [details, diff]
fix UTF-8 sidebar folder name display
Comment 2 Brian Evans (RETIRED) gentoo-dev 2015-09-01 18:53:10 UTC
Looks a lot like a dup of bug 541730.

Please try the latest -r8 version first.
Comment 3 Alexandr Darkman 2015-09-03 12:12:32 UTC
Thanks. Its works.
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2015-09-10 00:52:51 UTC

*** This bug has been marked as a duplicate of bug 541730 ***