The test sets 'encoding' to "cp932". When you do that, do you get a
warning or error? Vim uses mblen() to decide which bytes start a
double-byte character, perhaps that doesn't work in your case.
We could skip the test if cp932 doesn't work, but we need to detect that
somehow. Perhaps check with strchars()? Can you do this:
:set enc=cp932
:echo strlen("\x8eR")
:echo strchars("\x8eR")
--
Hanson's Treatment of Time:
There are never enough hours in a day, but always too
many days before Saturday.
/// Bram Moolenaar -- Br...@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 ///