2 This is the incomplete multibyte patch by Anders Helmersson
3 <anders.helmersson@telia.com>.
5 It was received at Debian's BTS, Bug#260623.
7 * Patch last synced with upstream:
9 - File: http://bugs.debian.org/cgi-bin/bugreport.cgi/patch-incomplete_multibyte-2?bug=260623&msg=3&att=1
12 - 2004-07-22: added entry to PATCHES file.
13 - 2004-07-22: adjusted paths in the diff (to apply with patch -p1).
17 ===================================================================
18 RCS file: /home/roessler/cvs/mutt/pager.c,v
19 retrieving revision 3.16
20 diff -u -r3.16 pager.c
21 --- a/pager.c 12 Jul 2004 13:35:27 -0000 3.16
22 +++ b/pager.c 21 Jul 2004 08:10:06 -0000
34 b_read = (int) (*last_pos - offset);
37 + /* trim tail of buf so that it contains complete multibyte characters */
38 + for (n = b_read, p = buf; n > 0; p += k, n -= k)
40 + k = mbrtowc (&wc, (char *) p, n, NULL);
43 + else if (k == -1 || k == 0)
49 /* copy "buf" to "fmt", but without bold and underline controls */
52 --- mutt.orig/PATCHES 1970-01-01 01:00:00.000000000 +0100
53 +++ mutt/PATCHES 2003-08-09 15:51:11.000000000 +0200
55 +patch.helmersson.incomplete-mbyte.2