Hi

Consider the Ex command ":s/ \?/ /g".

It transforms a line "foo bar" into " f o o b a r " (good so far).

Now, if the line contains multibyte characters, it no longer works.
If current line contains "café bar" for example, it transforms it
into "c a f <c3> <a9> b a r"  (bad).

Tested with Vim-7.3.177 on Linux with a utf-8 locale.

Regards
-- Dominique

-- 
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

Raspunde prin e-mail lui