nvi-1.81 restrict wchar_t as 24bit, so under some locale(eg. zh_CN.GB18030) search/regex doesn't work and sometimes dumps core(because of negative wchar_t value).
going through the new nvi2netbsd script