Created attachment 178600 [details] patch to fix iso-2022-jp2 autodetection nvi-m17n has feature to detect file encoding. This feature allow override fileencoding setting in .nexrc file or NEXINIT environment. I found a bug that nvi cannot detect iso-2022-jp encoding when the file also satisfy the condition of iso-2022-jp2. attached patch fix this bug.
Comment on attachment 178600 [details] patch to fix iso-2022-jp2 autodetection Thanks for the patch. Can you please confirm this change passes build tests (poudriere)? Implicit approval as the port has no maintainer.
I'm sorry because of poor resources, I cannot building test environment using poudriere. I've built with patch FreeBSD/amd64 10.2 with ports tree subversion revision 414668 (too old...).
A commit references this bug: Author: swills Date: Tue Aug 22 14:57:02 UTC 2017 New revision: 448538 URL: https://svnweb.freebsd.org/changeset/ports/448538 Log: editors/nvi-m17n: Fix autodetect of iso-2022-jp2 PR: 215852 Submitted by: Yasuhito FUTATSUKI <freebsd-bug-report-yf@yf.bsdclub.org> Changes: head/editors/nvi-m17n/Makefile head/editors/nvi-m17n/files/patch-common-multibyte.c
Committed, thanks!