Bug 150169 - app-editors/nvi has trouble loading unicode files
Bug#: 150169 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: truedfx@gentoo.org Reported By: t4y68ds02@sneakemail.com
Component: Applications
URL: 
Summary: app-editors/nvi has trouble loading unicode files
Keywords:  
Status Whiteboard: 
Opened: 2006-10-05 07:39 0000
Description:   Opened: 2006-10-05 07:39 0000
nvi does not use the correct call to read wide characters from a file. I have
patched it and submitted the patch upstream and told the author that I would
also submit the patch to the gentoo developers.

------- Comment #1 From Karl Hakimian 2006-10-05 07:41:02 0000 -------
Created an attachment (id=98842) [details]
patch to fix unicode read in nvi

I have tried this patch against both the stable version and the soon to be
released eselect version of nvi. It works for me.

------- Comment #2 From Harald van Dijk 2006-10-06 04:50:36 0000 -------
While that patch seems sane to me, could you give a quick example of when it is
necessary? (I can use nvi to edit my UTF-8 encoded files, without problems
yet.)

------- Comment #3 From Karl Hakimian 2006-10-06 05:02:55 0000 -------
Create a file containing utf-8 characters. Save it. Bring up nvi and then load
that file in via :r file. The utf-8 will be garbled.

------- Comment #4 From Harald van Dijk 2006-10-06 05:28:31 0000 -------
Thanks, fixed in 1.81.5-r5. I know that's in package.mask, but eselect-vi is
supposed to be unmasked soon. If it's not, I'll add another non-eselect
revision as well.

------- Comment #5 From Karl Hakimian 2006-10-06 06:59:10 0000 -------
Perfect. Thanks.