I think it is better to check iconv() after "set enc=utf-8" because
"\uff21" is not utf-8 character with other encoding.
diff -r a96cb758a8d7 src/testdir/test83.in
--- a/src/testdir/test83.in Fri Dec 23 14:56:28 2011 +0100
+++ b/src/testdir/test83.in Sat Dec 24 01:48:38 2011 +0900
@@ -2,12 +2,12 @@
STARTTEST
:so mbyte.vim
+:set enc=utf8
:if !has('iconv') || iconv("\x82\x60", "cp932", "utf-8") != "\uff21"
: e! test.ok
: w! test.out
: qa!
:endif
-:set enc=utf8
:/^text for tags1$/,/^text for tags1$/+1w! Xtags1.txt
:/^text for tags2$/,/^text for tags2$/+1w! Xtags2.txt
--
Yukihiro Nakadaira - [email protected]
--
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