[Bug 220013] editors/nvi-m17n [patch] fix CJK display problem caused by libncurses

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Nov 17 14:29:37 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220013

--- Comment #4 from Tomioka Satoshi <tomioka.satoshi.ml at gmail.com> ---
Created attachment 188075
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=188075&action=edit
fileencoding misdetection when the first line does not contain multi-byte
letters

In FreeBSD 11.1, nvi-m17n cannot set the "fileencoding" for euc-jp file
correctly, when the first line does not include multi-byte characters. 
In the current code, all the candidate flags are set for this case, and the
encoding is determined to the encoding of the first candidate within all the
candidates.

The patch attached may fix this bug.
The correction is made by only a single line addition to the multibyte.c but it
requires libncursesw.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list