mutt stable branch with some hacks

Fix rendering of replacement_char when Charset_is_utf8

Use mutt_addwch instead of addch to draw the replacement_char in
pager.c. The line to draw the replacement char was
addch (replacement_char ())
However, if Charset_is_utf8 is true, replacement_char returns 0xfffd,
which is outside the range that addch can handle. Use mutt_addwch
instead so that the pager displays the replacement char properly.

authored by

Daniel Tameling and committed by
Kevin McCarthy
10a35e5d ad277fd1

+1 -1
+1 -1
pager.c
··· 1286 1286 break; 1287 1287 ++col; 1288 1288 if (pa) 1289 - addch (replacement_char ()); 1289 + mutt_addwch (replacement_char ()); 1290 1290 } 1291 1291 } 1292 1292 *pspace = space;