[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug Report: Diff 2.7 has incorrect output for files with LFCR as lin
From: |
Alex Bochannek |
Subject: |
Re: Bug Report: Diff 2.7 has incorrect output for files with LFCR as line terminator. |
Date: |
Thu, 13 Dec 2001 16:50:01 -0800 |
> Alex Bochannek <address@hidden> wrote:
> > It appears that "diff - GNU diffutils version 2.7" (Solaris 8)
> > produces incorrect output for context and unified diffs when applied
> > to files, which use LFCR as a line termination sequence. The diffs are
> > in fact accurate, but the first column (with '+', '-', '!', etc.) is
> > missing:
>
> More likely, they are written correctly, but then the carriage return
> causes the following text to overwrite the first column when displayed
> directly on a terminal. What do you see when you view the diffs in
> emacs or less?
Interesting. Yes, it does seem to be merely a display problem. Example
line from a diff (this time diff 2.7.2 on Linux):
-^M# MSM64 Configuration generated Wed Jun 6 06:18:37 2001
+^M# MSM64 Configuration generated Wed Jun 6 06:09:58 2001
Do you think there is anything within diff that you would be willing
to do to address this? Maybe a line termination sequence option?
Thanks.
Alex.