On 6/20/06, Zvezdan Petkovic <[EMAIL PROTECTED]> wrote:
On Mon, Jun 19, 2006 at 07:16:00PM +0900, TAKAHASHI Tamotsu wrote: > I guess your two problems are in ncurses. > Mutt just uses ncurses' addstr or other functions. > But ncurses 5.2 doesn't support UTF-8. > IIRC, only libncursesw of ncurses 5.3 or higher supports it.What about the same mail file displayed in the same xterm using LANG=en_US.UTF-8 more filename The switch between ASCII and non-ASCII characters is rendered correctly. Both more and xterm are linked to the same libncurses as mutt.
If a whole line is output at once (as by "more"), it will be shown correctly. But ncurses doesn't always updates every whole line. For example, if mutt tries to show "abcdef" on a line where previously contains "abbbbb", ncurses will process only "cdef". That's good for ASCII, but it doesn't work for UTF-8 because UTF-8 has "state". (Maybe you can fix the garbled screen on mutt with "Ctrl-L". Because "Ctrl-L" button forces mutt to update full-screen.) This is just an example. Ncurses 5.2 has many problems with UTF-8. So I am not sure that's _the_ problem you are seeing. Anyway you should use newer ncurses for UTF-8. Regards, -- tamo
