Hirohito Higashi wrote:

> Hello,
> 
> I received a bug report from machakann and ikunikun.
> 
> Vim 7.4.179 on Fedora19 (64bit)
> (Vim's required config: --enable-multibyte)
> 
> How to reproduce.
> 1.
>   $ vim -N -u NONE --cmd "set enc=utf-8"
> 
> 1-1.
>   :echo match('abc', '$', 0, 2)  " Should return -1
>   3
> 
> 1-2.
>   :echo match('abc', '$', 0, 12345678)  " Should return -1
>   3  " And very slowly. (about 7sec)
> 
> 2.
>   $ vim -N -u NONE --cmd "set enc=latin1"
> 
> 2-1.
>   :echo match('abc', '$', 0, 2)  " Should return -1
>   4   " 
> 
> 2-2.
>   :echo match('abc', '$', 0, 12345678)  " Should return -1
>   Vim: Caught deadly signal SEGV
>   Vim: Finished.
>   Segmentation fault
> 
> I wrote a patch. (including test)
> Please check it.

Thanks!  I'll include it soon.


-- 
    [clop clop]
MORTICIAN:  Who's that then?
CUSTOMER:   I don't know.
MORTICIAN:  Must be a king.
CUSTOMER:   Why?
MORTICIAN:  He hasn't got shit all over him.
                                  The Quest for the Holy Grail (Monty Python)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui