4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Cannot display Unicode characters above 0x10000.
12 Solution: Remove the replacement with a question mark when UNICODE16 is not
13 defined. (partly by Nicolas Weber)
17 *** ../vim-7.1.115/src/screen.c Thu Aug 30 13:51:52 2007
18 --- src/screen.c Mon Sep 10 22:29:42 2007
24 /* Non-BMP character: display as ? or fullwidth ?. */
27 ScreenLinesUC[idx] = (cells == 2) ? 0xff1f : (int)'?';
30 ScreenLinesUC[idx] = u8c;
31 for (i = 0; i < Screen_mco; ++i)
35 if ((mb_l == 1 && c >= 0x80)
36 || (mb_l >= 1 && mb_c == 0)
37 || (mb_l > 1 && (!vim_isprintc(mb_c)
38 ! || mb_c >= 0x10000)))
41 * Illegal UTF-8 byte: display as <xx>.
42 * Non-BMP character : display as ? or fullwidth ?.
46 transchar_hex(extra, mb_c);
47 # ifdef FEAT_RIGHTLEFT
49 if ((mb_l == 1 && c >= 0x80)
50 || (mb_l >= 1 && mb_c == 0)
51 || (mb_l > 1 && (!vim_isprintc(mb_c)
58 * Illegal UTF-8 byte: display as <xx>.
59 * Non-BMP character : display as ? or fullwidth ?.
65 transchar_hex(extra, mb_c);
66 # ifdef FEAT_RIGHTLEFT
74 else if (utf_char2cells(mb_c) != 2)
77 /* 0xff1f in UTF-8: full-width '?' */
78 STRCPY(extra, "\357\274\237");
87 u8c = utfc_ptr2char(ptr, u8cc);
88 mbyte_cells = utf_char2cells(u8c);
90 /* Non-BMP character: display as ? or fullwidth ?. */
97 attr = hl_attr(HLF_8);
101 if (p_arshape && !p_tbidi && ARABIC_CHAR(u8c))
103 *** ../vim-7.1.116/src/version.c Mon Sep 17 22:19:43 2007
104 --- src/version.c Mon Sep 17 22:37:31 2007
108 { /* Add new patch number below this line */
114 There can't be a crisis today, my schedule is already full.
116 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
117 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
118 \\\ download, build and distribute -- http://www.A-A-P.org ///
119 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///