From 32ad98baacc45bafadf8e33c4e57664029a57694 Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Sun, 13 Apr 2014 13:11:00 -0400 Subject: [PATCH] If c_termproc is set, include a default display command so the charset conversion pipeline will work correctly. --- uip/mhshowsbr.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/uip/mhshowsbr.c b/uip/mhshowsbr.c index 85c4c044..e3368d40 100644 --- a/uip/mhshowsbr.c +++ b/uip/mhshowsbr.c @@ -508,9 +508,12 @@ show_text (CT ct, int alternate, int concatsw) * if it is not a text part of a multipart/alternative */ if (!alternate || ct->c_subtype == TEXT_PLAIN) { - if (concatsw) - snprintf(buffer, sizeof(buffer), "%%l"); - else + if (concatsw) { + if (ct->c_termproc) + snprintf(buffer, sizeof(buffer), "%%lcat"); + else + snprintf(buffer, sizeof(buffer), "%%l"); + } else snprintf (buffer, sizeof(buffer), "%%l%s %%F", progsw ? progsw : moreproc && *moreproc ? moreproc : DEFAULT_PAGER); cp = (ct->c_showproc = add (buffer, NULL)); -- 2.56.0