emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#64461: closed (strange output of "diff -l -y")


From: GNU bug Tracking System
Subject: bug#64461: closed (strange output of "diff -l -y")
Date: Tue, 04 Jul 2023 17:48:02 +0000

Your message dated Tue, 4 Jul 2023 10:47:35 -0700
with message-id <d08dd7f7-7594-0be2-357b-7319d464cbb9@cs.ucla.edu>
and subject line Re: [bug-diffutils] bug#64461: strange output of "diff -l -y"
has caused the debbugs.gnu.org bug report #64461,
regarding strange output of "diff -l -y"
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
64461: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64461
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: strange output of "diff -l -y" Date: Tue, 04 Jul 2023 18:47:04 +0200
Hi,

Seen with diffutils 'master' branch today:

$ cat foo1.txt
你好
$ cat foo2.txt
早晨, 你好
$ src/diff -y foo1.txt foo2.txt
你好                                                          | 早晨, 你好
$ src/diff -l -y foo1.txt foo2.txt


2023-07-04 18:41           diff -l -y foo1.txt foo2.txt           Page 1


                                                              | , 




























































你好早晨你好

(and the last line is not terminated by a newline).

This is strange, isn't it? 'diff' has separate the ASCII from the
non-ASCII parts of the input. With the attached patch, the output becomes:

$ src/diff -l -y foo1.txt foo2.txt


2023-07-04 18:42           diff -l -y foo1.txt foo2.txt           Page 1


你好                                                          | 早晨, 你好





























































(which is more what I had expected).

Attachment: 0001-diff-Fix-output-of-diff-l-y-for-non-ASCII-input-file.patch
Description: Text Data


--- End Message ---
--- Begin Message --- Subject: Re: [bug-diffutils] bug#64461: strange output of "diff -l -y" Date: Tue, 4 Jul 2023 10:47:35 -0700 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Thanks, I installed that, followed by the attached NEWS update. Luckily nobody uses diff -ly.

Attachment: 0001-doc-mention-bug-64461-in-NEWS.patch
Description: Text Data


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]