tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [PATCH] replace 0xA0 to whitespace in plain text files (part 2)



On Sun, 14 Sep 2008, Martin Husemann wrote:
Which would probably be very easy if someone could provide a PR with sample
input file and instructions how to reproduce...

Not a PR, but here are some details (below). Let me say that I do *not* see the problem on NetBSD that I do see on Linux (hence no PR).

What I have on Linux:
 * nvi from pkgsrc, :version says:
   Version nvi-1.81.6 (2007-11-18) The CSRG, University of California, Berkeley.
 * A file witn an Latin1 encoded German umlaut (hex code 0xe4, HTML
   encoding: ä)
 * LANG and LC_* not set
 * run "nvi file"
 * :w, and get:
        +=+=+=+=+=+=+=+
        Conversion error on line 27.
        Error: u: Invalid or incomplete multibyte or wide character.
        u: WARNING: FILE TRUNCATED.
 * After that, both the file on disk and in the editor has 26 lines.

I can *not* reproduce this on NetBSD, same nvi version. Thomas, you said NetBSD has a problem in that area - can you give details?


 - Hubert


Home | Main Index | Thread Index | Old Index