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: When 'encoding' is a double-byte encoding ":helptags" may not find
13 Solution: Use vim_strbyte() instead of vim_strchr(). (Yasuhiro Matsumoto)
17 *** ../vim-7.3.517/src/ex_cmds.c 2012-04-25 17:32:14.000000000 +0200
18 --- src/ex_cmds.c 2012-05-18 16:20:20.000000000 +0200
21 p1 = vim_strchr(IObuff, '*'); /* find first '*' */
24 ! p2 = vim_strchr(p1 + 1, '*'); /* find second '*' */
25 if (p2 != NULL && p2 > p1 + 1) /* skip "*" and "**" */
27 for (s = p1 + 1; s < p2; ++s)
29 p1 = vim_strchr(IObuff, '*'); /* find first '*' */
32 ! /* Use vim_strbyte() instead of vim_strchr() so that when
33 ! * 'encoding' is dbcs it still works, don't find '*' in the
35 ! p2 = vim_strbyte(p1 + 1, '*'); /* find second '*' */
36 if (p2 != NULL && p2 > p1 + 1) /* skip "*" and "**" */
38 for (s = p1 + 1; s < p2; ++s)
39 *** ../vim-7.3.517/src/version.c 2012-05-18 12:49:33.000000000 +0200
40 --- src/version.c 2012-05-18 16:23:50.000000000 +0200
44 { /* Add new patch number below this line */
50 If all you have is a hammer, everything looks like a nail.
51 When your hammer is C++, everything begins to look like a thumb.
52 -- Steve Hoflich, comp.lang.c++
54 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
55 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
56 \\\ an exciting new programming language -- http://www.Zimbu.org ///
57 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///