mutt/2305: [patch] UTF-8 characters do not display correctly with S-lang on an xterm
>Number: 2305
>Notify-List:
>Category: mutt
>Synopsis: [patch] UTF-8 characters do not display correctly with S-lang
>on an xterm
>Confidential: no
>Severity: normal
>Priority: medium
>Responsible: mutt-dev
>State: open
>Keywords:
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jun 23 19:40:51 +0200 2006
>Originator: Roland Smith
>Release: 1.5.11
>Organization:
>Environment:
FreeBSD slackbox.xs4all.nl 6.1-STABLE FreeBSD 6.1-STABLE #0: Tue May 9
22:46:51 CEST 2006 rsmith@xxxxxxxxxxxxxxxxxx:/usr/obj/usr/src/sys/RFS amd64
>Description:
When compiled with S-lang support, mutt doesn't display UTF-8 characters
correctly when run on an xterm or rxvt.
>How-To-Repeat:
Compile mutt with S-lang support and run it on a UTF-8 enabled xterm or rxvt.
>Fix:
The fix is to apply the following patch to main.c:
------------ patch --------------
--- main.c.orig Fri Jun 23 19:21:12 2006
+++ main.c Fri Jun 23 19:22:06 2006
@@ -483,6 +483,7 @@
SLtt_Ignore_Beep = 1; /* don't do that #*$@^! annoying visual beep! */
SLsmg_Display_Eight_Bit = 128; /* characters above this are printable */
SLtt_set_color(0, NULL, "default", "default");
+ SLutf8_enable(1); /* Enable utf-8 support. */
#else
/* should come before initscr() so that ncurses 4.2 doesn't try to install
its own SIGWINCH handler */
------------ patch --------------
Maybe SLutf8_enable(-1) would be a better choice in general, but I haven't
tested it.
>Add-To-Audit-Trail:
>Unformatted: