Thursday, June 5, 2014

Re: Why vim doesn't insert cyrillic symbols properly in Ex mode?

Yukihiro Nakadaira wrote:

> CC to vim_dev
>
> On Thu, Jun 5, 2014 at 2:50 AM, Stas Malavin <stas.malavin@gmail.com> wrote> :
>
> > To make changes in several files I use the following script:
> >
> > echo search('publications.html"') | normal o<li><a
> > href="./book_series.html">Книжные > серии</a></li>
> > echo search('collections.html"') | d
> > echo search('photo.html"') | d
> > wq
> >
> > Then I do
> > for file in *.html do; vim -e $file < script; done
> >
> > As a result a string "^Z=86=K5 A5@88" is inserted instead of "К> нижные
> > серии". All html files as well as the script its> elf are utf-8 encoded, and
> > no other problems with Cyrillic revealed. What's going on?
> >
> > Thanks in advance for any comment!
>
> In Ex mode, multi-byte character is not handled.
> Please check the attached patch.

Thanks, I'll check it out.

--
hundred-and-one symptoms of being an internet addict:
268. You get up in the morning and go online before getting your coffee.

/// Bram Moolenaar -- Bram@Moolenaar.net -- 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_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: