1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Multi-byte characters in b:browsefilter are not handled correctly.
12 Solution: First use convert_filter() normally and then convert to wide
13 characters. (Taro Muraoka)
17 *** ../vim-7.3.405/src/gui_w48.c 2011-09-07 18:58:24.000000000 +0200
18 --- src/gui_w48.c 2012-01-20 17:54:19.000000000 +0100
22 static LRESULT _OnImeNotify(HWND hWnd, DWORD dwCommand, DWORD dwData);
25 + #if defined(FEAT_MBYTE) && defined(WIN3264)
26 + static char_u *convert_filter(char_u *s);
29 #ifdef DEBUG_PRINT_ERROR
31 * Print out the last Windows error message
35 # if defined(FEAT_MBYTE) && defined(WIN3264)
37 ! * Wide version of convert_filter(). Keep in sync!
40 convert_filterW(char_u *s)
43 ! unsigned s_len = (unsigned)STRLEN(s);
46 ! res = (WCHAR *)alloc((s_len + 3) * sizeof(WCHAR));
49 ! for (i = 0; i < s_len; ++i)
50 ! if (s[i] == '\t' || s[i] == '\n')
55 ! /* Add two extra NULs to make sure it's properly terminated. */
56 ! res[s_len + 1] = NUL;
57 ! res[s_len + 2] = NUL;
64 # if defined(FEAT_MBYTE) && defined(WIN3264)
66 ! * Wide version of convert_filter().
69 convert_filterW(char_u *s)
74 ! tmp = convert_filter(s);
77 ! len = (int)STRLEN(s) + 3;
78 ! res = enc_to_utf16(tmp, &len);
83 *** ../vim-7.3.405/src/version.c 2012-01-20 17:15:47.000000000 +0100
84 --- src/version.c 2012-01-20 17:57:09.000000000 +0100
88 { /* Add new patch number below this line */
94 DENNIS: Look, strange women lying on their backs in ponds handing out
95 swords ... that's no basis for a system of government. Supreme
96 executive power derives from a mandate from the masses, not from some
97 farcical aquatic ceremony.
98 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
100 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
101 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
102 \\\ an exciting new programming language -- http://www.Zimbu.org ///
103 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///