[bug #16452] mcedit forgets POSIX newline at end of file


                 Summary: mcedit forgets POSIX newline at end of file
                 Project: GNU Midnight Commander
            Submitted by: div0
            Submitted on: Thursday 04/27/06 at 07:27
                Category: None
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
                 Release: 4.6.1
        Operating System: GNU/Hurd



When editing a file, mcedit does not put a newline character at the end of
the file as required by POSIX and other standards.

I quote IEEE 1003.2-2001:

A file that contains characters organized into one or more lines. The lines
do not contain NUL characters and none can exceed {LINE_MAX} bytes in length,
including the <newline>.

I think a text editor should default to the OS's text file format which does
require a newline at the end of the last line (many utilities including sudo
actually require that and gcc warns if the last line does not end with a
newline). Of course, if one is editing a DOS file (CRLF line separators), no
newline is to be enforced.


Reply to this item at:


  Message sent via/by Savannah

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]