2009/1/14 Tony Mechelynck <[email protected]>:

> On 14/01/09 07:16, Yasuhiro MATSUMOTO wrote:
>> Oooooops. sorry.
>>
>> However, the problem happen with the script as your said. :-)
>>
>> Thanks.
>
> "E486: Pattern not found" means that there was no match. Are you sure
> you ran that script while the current file contained one or more 。
> characters? When I do (manually)
>
>        :%s/。/./g
>
> on the UTF-8 script I sent you, the result is "2 substitutions on 2
> lines" and the fullwidth fullstops are replaced by ASCII dots.
>
> I'm using gvim 7.2.84 (Huge version, with GTK2/Gnome GUI).
>
>
> Best regards,
> Tony.

I confirm the bug.

- Doing ":%s/。/./g" works (no error, and substitution happens).

- But doing...

  :command! SubJapanesePeriodToDot %s/。/./g
  :SubJapanesePeriodToDot

... then I get the error message:

E486: Pattern not found: <e3><80><fe>X<82>

I'm using Vim-7.2.84 on Linux, with a utf-8 locale.

。is Unicode character U+3002 (i.e. UTF-8 sequence 0xe3 0x80 0x82).

-- Dominique

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui